mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +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()
|
||||
|
||||
self._google_config = google_config.CloudGoogleConfig(
|
||||
google_conf = google_config.CloudGoogleConfig(
|
||||
self._hass,
|
||||
self.google_user_config,
|
||||
cloud_user,
|
||||
self._prefs,
|
||||
self.cloud,
|
||||
)
|
||||
await self._google_config.async_initialize()
|
||||
await google_conf.async_initialize()
|
||||
self._google_config = google_conf
|
||||
|
||||
return self._google_config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user