Don't re-render the whole card for conditionState.

This commit is contained in:
Dermot Duffy
2022-06-12 17:56:25 -07:00
parent 3ada2daf1d
commit 10c2e746b2
3 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -156,10 +156,10 @@ export class FrigateCardElements extends LitElement {
public hass?: HomeAssistant;
@property({ attribute: false })
protected elements: PictureElements;
public conditionState?: ConditionState;
@property({ attribute: false })
protected conditionState?: ConditionState;
protected elements: PictureElements;
protected _boundMenuRemoveHandler = this._menuRemoveHandler.bind(this);
+3 -3
View File
@@ -61,6 +61,9 @@ const URL_SIGN_REFRESH_THRESHOLD_SECONDS = 1 * 60 * 60;
@customElement('frigate-card-live')
export class FrigateCardLive extends LitElement {
@property({ attribute: false })
public conditionState?: ConditionState;
@property({ attribute: false })
protected hass?: ExtendedHomeAssistant;
@@ -76,9 +79,6 @@ export class FrigateCardLive extends LitElement {
@property({ attribute: false, hasChanged: contentsChanged })
protected liveOverrides?: LiveOverrides;
@property({ attribute: false })
protected conditionState?: ConditionState;
set preloaded(preloaded: boolean) {
this._preloaded = preloaded;