mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Do not report google states if nothing to report (#38608)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user