Skip to content
Snippets Groups Projects
Commit 6a8a97b5 authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Only sync when HA is started up as we already sync at startup (#72940)

parent f5e03631
Branches
Tags
No related merge requests found
...@@ -39,7 +39,6 @@ class CloudGoogleConfig(AbstractConfig): ...@@ -39,7 +39,6 @@ class CloudGoogleConfig(AbstractConfig):
self._cur_entity_prefs = self._prefs.google_entity_configs self._cur_entity_prefs = self._prefs.google_entity_configs
self._cur_default_expose = self._prefs.google_default_expose self._cur_default_expose = self._prefs.google_default_expose
self._sync_entities_lock = asyncio.Lock() self._sync_entities_lock = asyncio.Lock()
self._sync_on_started = False
@property @property
def enabled(self): def enabled(self):
...@@ -224,7 +223,7 @@ class CloudGoogleConfig(AbstractConfig): ...@@ -224,7 +223,7 @@ class CloudGoogleConfig(AbstractConfig):
self._cur_entity_prefs = prefs.google_entity_configs self._cur_entity_prefs = prefs.google_entity_configs
self._cur_default_expose = prefs.google_default_expose self._cur_default_expose = prefs.google_default_expose
if sync_entities: if sync_entities and self.hass.is_running:
await self.async_sync_entities_all() await self.async_sync_entities_all()
@callback @callback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment