1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Prevent race when loading cloud config (#64901)

* Prevent race when loading cloud config

* Tweak
This commit is contained in:
Erik Montnemery 2022-01-26 10:59:36 +01:00 committed by GitHub
parent 2f30fdb9b8
commit 18ea43b927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,14 +95,15 @@ class CloudClient(Interface):
cloud_user = await self._prefs.get_cloud_user()
self._alexa_config = alexa_config.CloudAlexaConfig(
alexa_conf = alexa_config.CloudAlexaConfig(
self._hass,
self.alexa_user_config,
cloud_user,
self._prefs,
self.cloud,
)
await self._alexa_config.async_initialize()
await alexa_conf.async_initialize()
self._alexa_config = alexa_conf
return self._alexa_config