mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-02 09:17: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 {
|
public connectedCallback(): void {
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
if (this._config && this._config.entity) {
|
if (this._config && this._config.entity) {
|
||||||
const stateObj = this.hass!.states[this._config!.entity];
|
const stateObj = this.hass?.states[this._config!.entity];
|
||||||
if (stateObj) {
|
if (stateObj) {
|
||||||
this._startInterval(stateObj);
|
this._startInterval(stateObj);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user