Sync entities when enabling/disabling Google Assistant (#72791)

This commit is contained in:
Paulus Schoutsen 2022-05-31 14:58:45 -07:00 committed by GitHub
parent 02068a2013
commit 6d74149f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -213,6 +213,9 @@ class AbstractConfig(ABC):
async def async_sync_entities_all(self):
"""Sync all entities to Google for all registered agents."""
if not self._store.agent_user_ids:
return 204
res = await gather(
*(
self.async_sync_entities(agent_user_id)