mirror of
https://github.com/home-assistant/core
synced 2024-09-15 17:29:45 +02: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
|
||||
if (
|
||||
"old_state" in event.data
|
||||
event.data.get("old_state") is not None
|
||||
and "new_state" in event.data
|
||||
and (
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user