1
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:
Paulus Schoutsen 2022-04-28 23:45:57 -07:00 committed by GitHub
parent 2f9beb4a4a
commit a57136783d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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