Skip to content

Commit

Permalink
move some settings to advanced editor
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Mar 11, 2024
1 parent 9de7b28 commit e5a43b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 10 additions & 1 deletion src/editor/advanced-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import { html, TemplateResult } from 'lit';
import { BaseEditor } from './base-editor';

export const ADVANCED_SCHEMA = [
{
name: 'entityPlatform',
help: 'Show all media players for the selected platform',
type: 'string',
},
{
name: 'entityId',
help: 'Not needed, but forces this player to be the selected one on loading the card (overrides url param etc)',
selector: { entity: { multiple: false, filter: { domain: 'media_player' } } },
},
{
name: 'hideGroupCurrentTrack',
selector: { boolean: {} },
Expand Down Expand Up @@ -38,7 +48,6 @@ export const ADVANCED_SCHEMA = [
name: 'hideBrowseMediaButton',
selector: { boolean: {} },
},

{
type: 'string',
name: 'labelWhenNoMediaIsSelected',
Expand Down
10 changes: 0 additions & 10 deletions src/editor/entities-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ export const ENTITIES_RENAME_SCHEMA = [
];

export const ENTITIES_SCHEMA = [
{
name: 'entityPlatform',
help: 'Show all media players for the selected platform',
selector: { boolean: {} },
},
{
name: 'entityId',
help: 'Not needed, but forces this player to be the selected one on loading the card (overrides url param etc)',
selector: { entity: { multiple: false, filter: { domain: 'media_player' } } },
},
{
name: 'entities',
help: "Required, unless you have specified entity platform",
Expand Down

0 comments on commit e5a43b7

Please sign in to comment.