mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Do not report google states if nothing to report (#38608)
This commit is contained in:
parent
5cc7605d20
commit
6d0d5548e5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user