+ The following needs to be configured using code (YAML):
- customSources
- customThumbnail
- customThumbnailIfMissing
- mediaBrowserTitlesToIgnore
-
+
`;
}
protected changed(ev: CustomEvent): void {
diff --git a/src/editor/artwork-override-editor.ts b/src/editor/artwork-override-editor.ts
index 33685c42..446efed9 100644
--- a/src/editor/artwork-override-editor.ts
+++ b/src/editor/artwork-override-editor.ts
@@ -5,7 +5,7 @@ import { BaseEditor } from './base-editor';
const newOverride = { ifMissing: false };
class ArtworkOverrideEditor extends BaseEditor {
- @property() index!: number;
+ @property({ type: Number }) index!: number;
protected render(): TemplateResult {
this.config = this.store.config;
this.hass = this.store.hass;
diff --git a/src/editor/base-editor.ts b/src/editor/base-editor.ts
index 31c9a238..7d68cc52 100644
--- a/src/editor/base-editor.ts
+++ b/src/editor/base-editor.ts
@@ -5,9 +5,9 @@ import { CardConfig } from '../types';
import Store from '../model/store';
export abstract class BaseEditor extends LitElement {
- @property() config!: CardConfig;
- @property() hass!: HomeAssistant;
- @property() store!: Store;
+ @property({attribute: false}) config!: CardConfig;
+ @property({attribute: false}) hass!: HomeAssistant;
+ @property({attribute: false}) store!: Store;
setConfig(config: CardConfig) {
this.config = JSON.parse(JSON.stringify(config));
diff --git a/src/editor/custom-source-editor.ts b/src/editor/custom-source-editor.ts
index 9240b35d..d159d0c2 100644
--- a/src/editor/custom-source-editor.ts
+++ b/src/editor/custom-source-editor.ts
@@ -3,7 +3,7 @@ import { property } from 'lit/decorators.js';
import { BaseEditor } from './base-editor';
class CustomSourceEditor extends BaseEditor {
- @property() index!: number;
+ @property({ type: Number }) index!: number;
protected render(): TemplateResult {
return html``;
diff --git a/src/editor/form.ts b/src/editor/form.ts
index ff79f682..c079b2b3 100644
--- a/src/editor/form.ts
+++ b/src/editor/form.ts
@@ -3,8 +3,8 @@ import { BaseEditor } from './base-editor';
import { property } from 'lit/decorators.js';
class Form extends BaseEditor {
- @property() schema!: unknown;
- @property() data!: unknown;
+ @property({attribute: false}) schema!: unknown;
+ @property({attribute: false}) data!: unknown;
@property() changed!: (ev: CustomEvent) => void;
protected render(): TemplateResult {
this.config = this.store.config;
diff --git a/src/editor/predefined-group-editor.ts b/src/editor/predefined-group-editor.ts
index ff6338a3..64a185b9 100644
--- a/src/editor/predefined-group-editor.ts
+++ b/src/editor/predefined-group-editor.ts
@@ -5,7 +5,7 @@ import { BaseEditor } from './base-editor';
import { ConfigPredefinedGroupPlayer, PredefinedGroup } from '../types';
class PredefinedGroupEditor extends BaseEditor {
- @property() index!: number;
+ @property({ type: Number }) index!: number;
@state() predefinedGroup!: PredefinedGroup