Do not report state when closing down (#32168)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-02-25 09:05:36 -08:00
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