mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
Only sync when HA is started up as we already sync at startup (#72940)
This commit is contained in:
parent
a4c3585448
commit
fbb08994f4
@ -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):
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user