mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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"],
|
||||
state?: string
|
||||
): string => {
|
||||
const entity = entities[stateObj.entity_id] as
|
||||
const entity = entities?.[stateObj.entity_id] as
|
||||
| EntityRegistryDisplayEntry
|
||||
| undefined;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user