mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix attribute access on None on startup in ESPHome (#56105)
This commit is contained in:
parent
cb8c0cb123
commit
6e7ce89c64
@ -221,7 +221,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
|
|
||||||
# Only communicate changes to the state or attribute tracked
|
# Only communicate changes to the state or attribute tracked
|
||||||
if (
|
if (
|
||||||
"old_state" in event.data
|
event.data.get("old_state") is not None
|
||||||
and "new_state" in event.data
|
and "new_state" in event.data
|
||||||
and (
|
and (
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user