mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 05:46:35 +00:00
Update hui-thermostat-card.ts (#4863)
This commit is contained in:
parent
6feaf64c90
commit
485e2fde25
@ -269,7 +269,11 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
|
||||
applyThemesOnElement(this, this.hass.themes, this._config.theme);
|
||||
}
|
||||
|
||||
this._setTemp = this._getSetTemp(this.hass!.states[this._config!.entity]);
|
||||
const stateObj = this.hass!.states[this._config!.entity];
|
||||
if (!stateObj) {
|
||||
return;
|
||||
}
|
||||
this._setTemp = this._getSetTemp(stateObj);
|
||||
this.rescale_svg();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user