mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Update compute_state_display.ts
This commit is contained in:
parent
82a8b8fd5d
commit
f712b76ccf
@ -50,7 +50,7 @@ export const computeStateDisplay = (
|
|||||||
entities: HomeAssistant["entities"],
|
entities: HomeAssistant["entities"],
|
||||||
state?: string
|
state?: string
|
||||||
): string => {
|
): string => {
|
||||||
const entity = entities[stateObj.entity_id] as
|
const entity = entities?.[stateObj.entity_id] as
|
||||||
| EntityRegistryDisplayEntry
|
| EntityRegistryDisplayEntry
|
||||||
| undefined;
|
| undefined;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user