Fix theme update (#5246)

This commit is contained in:
Zack Arnett 2020-03-18 07:47:20 -04:00 committed by Bram Kragten
parent a3969fe2c8
commit 595d04c922

View File

@ -271,7 +271,12 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
protected updated(changedProps: PropertyValues): void {
super.updated(changedProps);
if (!this._config || !this.hass || !changedProps.has("hass")) {
if (
!this._config ||
!this.hass ||
(!changedProps.has("hass") && !changedProps.has("_config"))
) {
return;
}