From a57136783d9b4cb14c52fbc63690487bb0c4e754 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 28 Apr 2022 23:45:57 -0700 Subject: [PATCH] Fix race causing google config pre-init access (#71042) --- homeassistant/components/cloud/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/cloud/client.py b/homeassistant/components/cloud/client.py index ad34186b7df..c47544f9d99 100644 --- a/homeassistant/components/cloud/client.py +++ b/homeassistant/components/cloud/client.py @@ -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