mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 22:07:20 +00:00
Update hui-timer-entity-row.ts
This commit is contained in:
parent
8dd3d78f21
commit
8f58eee6af
@ -41,7 +41,7 @@ class HuiTimerEntityRow extends LitElement {
|
||||
public connectedCallback(): void {
|
||||
super.connectedCallback();
|
||||
if (this._config && this._config.entity) {
|
||||
const stateObj = this.hass!.states[this._config!.entity];
|
||||
const stateObj = this.hass?.states[this._config!.entity];
|
||||
if (stateObj) {
|
||||
this._startInterval(stateObj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user