Do not report state when closing down (#32168)
This commit is contained in:
1 parent
5488389244
commit
900714a3ee
2 files changed
+6
No files matched your search
@@ -21,6 +21,9 @@ def async_enable_report_state(hass: HomeAssistant, google_config: AbstractConfig
|
||||
"""Enable state reporting."""
|
||||
|
||||
async def async_entity_state_listener(changed_entity, old_state, new_state):
|
||||
if not hass.is_running:
|
||||
return
|
||||
|
||||
if not new_state:
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user