mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Logbook: Fix for no state obj (#7191)
This commit is contained in:
parent
93d1b9a2d5
commit
cbdfaccdb2
@ -44,11 +44,12 @@ export const getLogbookData = async (
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (const entry of logbookData) {
|
for (const entry of logbookData) {
|
||||||
if (entry.state) {
|
const stateObj = hass!.states[entry.entity_id!];
|
||||||
|
if (entry.state && stateObj) {
|
||||||
entry.message = getLogbookMessage(
|
entry.message = getLogbookMessage(
|
||||||
hass,
|
hass,
|
||||||
entry.state,
|
entry.state,
|
||||||
hass!.states[entry.entity_id!],
|
stateObj,
|
||||||
computeDomain(entry.entity_id!)
|
computeDomain(entry.entity_id!)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user