mirror of
https://github.com/home-assistant/core
synced 2024-09-15 17:29:45 +02:00
Fix race causing google config pre-init access (#71042)
This commit is contained in:
parent
2f9beb4a4a
commit
a57136783d
@ -118,14 +118,15 @@ class CloudClient(Interface):
|
|||||||
|
|
||||||
cloud_user = await self._prefs.get_cloud_user()
|
cloud_user = await self._prefs.get_cloud_user()
|
||||||
|
|
||||||
self._google_config = google_config.CloudGoogleConfig(
|
google_conf = google_config.CloudGoogleConfig(
|
||||||
self._hass,
|
self._hass,
|
||||||
self.google_user_config,
|
self.google_user_config,
|
||||||
cloud_user,
|
cloud_user,
|
||||||
self._prefs,
|
self._prefs,
|
||||||
self.cloud,
|
self.cloud,
|
||||||
)
|
)
|
||||||
await self._google_config.async_initialize()
|
await google_conf.async_initialize()
|
||||||
|
self._google_config = google_conf
|
||||||
|
|
||||||
return self._google_config
|
return self._google_config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user