From 6d0d5548e52494e870091ad13e48e02945d669a6 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 7 Aug 2020 08:16:46 +0200 Subject: [PATCH] Do not report google states if nothing to report (#38608) --- homeassistant/components/google_assistant/report_state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/google_assistant/report_state.py b/homeassistant/components/google_assistant/report_state.py index ad944362721..6fc9de53e4a 100644 --- a/homeassistant/components/google_assistant/report_state.py +++ b/homeassistant/components/google_assistant/report_state.py @@ -67,6 +67,9 @@ def async_enable_report_state(hass: HomeAssistant, google_config: AbstractConfig except SmartHomeError: continue + if not entities: + return + await google_config.async_report_state_all({"devices": {"states": entities}}) async_call_later(hass, INITIAL_REPORT_DELAY, inital_report)