From 8334a4e866e767df75b8d9059837b62f6f7156ab Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 13 Dec 2018 14:16:04 +0100 Subject: [PATCH] Call super updated --- src/components/ha-label-badge.ts | 1 + src/panels/config/cloud/cloud-exposed-entities.ts | 1 + src/panels/config/cloud/cloud-webhooks.ts | 1 + src/panels/lovelace/cards/hui-entities-card.ts | 3 ++- src/panels/lovelace/cards/hui-entity-button-card.ts | 1 + src/panels/lovelace/cards/hui-gauge-card.ts | 1 + src/panels/lovelace/cards/hui-glance-card.ts | 1 + src/panels/lovelace/cards/hui-light-card.ts | 1 + src/panels/lovelace/cards/hui-sensor-card.ts | 1 + src/panels/lovelace/cards/hui-thermostat-card.ts | 1 + src/panels/lovelace/components/hui-entities-toggle.ts | 1 + src/panels/lovelace/components/hui-timestamp-display.ts | 1 + src/panels/lovelace/ha-panel-lovelace.ts | 1 + 13 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/ha-label-badge.ts b/src/components/ha-label-badge.ts index 8a33d8eb5663..f29778a0f0b3 100644 --- a/src/components/ha-label-badge.ts +++ b/src/components/ha-label-badge.ts @@ -153,6 +153,7 @@ class HaLabelBadge extends LitElement { } protected updated(changedProperties: PropertyValues): void { + super.updated(changedProperties); if (changedProperties.has("image")) { this.shadowRoot!.getElementById("badge")!.style.backgroundImage = this .image diff --git a/src/panels/config/cloud/cloud-exposed-entities.ts b/src/panels/config/cloud/cloud-exposed-entities.ts index e9d6438a2a3f..fd47f759b001 100644 --- a/src/panels/config/cloud/cloud-exposed-entities.ts +++ b/src/panels/config/cloud/cloud-exposed-entities.ts @@ -70,6 +70,7 @@ export class CloudExposedEntities extends LitElement { } protected updated(changedProperties: PropertyValues) { + super.updated(changedProperties); if ( changedProperties.has("filter") && changedProperties.get("filter") !== this.filter diff --git a/src/panels/config/cloud/cloud-webhooks.ts b/src/panels/config/cloud/cloud-webhooks.ts index db0d3a1dadfb..e89b6123a908 100644 --- a/src/panels/config/cloud/cloud-webhooks.ts +++ b/src/panels/config/cloud/cloud-webhooks.ts @@ -79,6 +79,7 @@ export class CloudWebhooks extends LitElement { } protected updated(changedProps: PropertyValues) { + super.updated(changedProps); if (changedProps.has("cloudStatus") && this.cloudStatus) { this._cloudHooks = this.cloudStatus.prefs.cloudhooks || {}; } diff --git a/src/panels/lovelace/cards/hui-entities-card.ts b/src/panels/lovelace/cards/hui-entities-card.ts index 2e1e2e1dd289..8fd4e5437dd2 100644 --- a/src/panels/lovelace/cards/hui-entities-card.ts +++ b/src/panels/lovelace/cards/hui-entities-card.ts @@ -88,7 +88,8 @@ class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement) this._configEntities = entities; } - protected updated(_changedProperties: PropertyValues): void { + protected updated(changedProperties: PropertyValues): void { + super.updated(changedProperties); if (this._hass && this._config) { applyThemesOnElement(this, this._hass.themes, this._config.theme); } diff --git a/src/panels/lovelace/cards/hui-entity-button-card.ts b/src/panels/lovelace/cards/hui-entity-button-card.ts index fbb074b0b43c..d2b208ae40d8 100644 --- a/src/panels/lovelace/cards/hui-entity-button-card.ts +++ b/src/panels/lovelace/cards/hui-entity-button-card.ts @@ -116,6 +116,7 @@ class HuiEntityButtonCard extends hassLocalizeLitMixin(LitElement) } protected updated(changedProps: PropertyValues): void { + super.updated(changedProps); if (!this._config || !this.hass) { return; } diff --git a/src/panels/lovelace/cards/hui-gauge-card.ts b/src/panels/lovelace/cards/hui-gauge-card.ts index cc7414fb3cb0..cedbec8af9c9 100644 --- a/src/panels/lovelace/cards/hui-gauge-card.ts +++ b/src/panels/lovelace/cards/hui-gauge-card.ts @@ -151,6 +151,7 @@ class HuiGaugeCard extends LitElement implements LovelaceCard { } protected updated(changedProps: PropertyValues): void { + super.updated(changedProps); if (!this._config || !this.hass) { return; } diff --git a/src/panels/lovelace/cards/hui-glance-card.ts b/src/panels/lovelace/cards/hui-glance-card.ts index ff74e0dc0f0c..537bc405e273 100644 --- a/src/panels/lovelace/cards/hui-glance-card.ts +++ b/src/panels/lovelace/cards/hui-glance-card.ts @@ -135,6 +135,7 @@ export class HuiGlanceCard extends hassLocalizeLitMixin(LitElement) } protected updated(changedProperties: PropertyValues): void { + super.updated(changedProperties); if (!this._config || !this.hass) { return; } diff --git a/src/panels/lovelace/cards/hui-light-card.ts b/src/panels/lovelace/cards/hui-light-card.ts index aea91b982506..1cb389af0e39 100644 --- a/src/panels/lovelace/cards/hui-light-card.ts +++ b/src/panels/lovelace/cards/hui-light-card.ts @@ -162,6 +162,7 @@ export class HuiLightCard extends hassLocalizeLitMixin(LitElement) } protected updated(changedProps: PropertyValues): void { + super.updated(changedProps); if (!this._config || !this.hass || !this._jQuery) { return; } diff --git a/src/panels/lovelace/cards/hui-sensor-card.ts b/src/panels/lovelace/cards/hui-sensor-card.ts index cde93f3056e5..2b1f40c9900b 100755 --- a/src/panels/lovelace/cards/hui-sensor-card.ts +++ b/src/panels/lovelace/cards/hui-sensor-card.ts @@ -274,6 +274,7 @@ class HuiSensorCard extends LitElement implements LovelaceCard { } protected updated(changedProps: PropertyValues) { + super.updated(changedProps); if (!this._config || this._config.graph !== "line" || !this.hass) { return; } diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index 45e9351fb710..bf9368de468b 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -152,6 +152,7 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement) } protected updated(changedProps: PropertyValues): void { + super.updated(changedProps); if (!this._config || !this.hass || !changedProps.has("hass")) { return; } diff --git a/src/panels/lovelace/components/hui-entities-toggle.ts b/src/panels/lovelace/components/hui-entities-toggle.ts index 95d15597666b..d441f7369f98 100644 --- a/src/panels/lovelace/components/hui-entities-toggle.ts +++ b/src/panels/lovelace/components/hui-entities-toggle.ts @@ -25,6 +25,7 @@ class HuiEntitiesToggle extends LitElement { } public updated(changedProperties: PropertyValues) { + super.updated(changedProperties); if (changedProperties.has("entities")) { this._toggleEntities = this.entities!.filter( (entityId) => diff --git a/src/panels/lovelace/components/hui-timestamp-display.ts b/src/panels/lovelace/components/hui-timestamp-display.ts index d97b9abdd051..3a346ff0ce27 100644 --- a/src/panels/lovelace/components/hui-timestamp-display.ts +++ b/src/panels/lovelace/components/hui-timestamp-display.ts @@ -78,6 +78,7 @@ class HuiTimestampDisplay extends hassLocalizeLitMixin(LitElement) { } protected updated(changedProperties: PropertyValues) { + super.updated(changedProperties); if (!changedProperties.has("format") || !this._connected) { return; } diff --git a/src/panels/lovelace/ha-panel-lovelace.ts b/src/panels/lovelace/ha-panel-lovelace.ts index 136a9283b57b..559e1e5311c5 100644 --- a/src/panels/lovelace/ha-panel-lovelace.ts +++ b/src/panels/lovelace/ha-panel-lovelace.ts @@ -105,6 +105,7 @@ class LovelacePanel extends hassLocalizeLitMixin(LitElement) { } public updated(changedProps: PropertyValues): void { + super.updated(changedProps); if (changedProps.has("narrow") || changedProps.has("showMenu")) { this._updateColumns(); }