mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Prevent race when loading cloud config (#64901)
* Prevent race when loading cloud config * Tweak
This commit is contained in:
parent
2f30fdb9b8
commit
18ea43b927
@ -95,14 +95,15 @@ class CloudClient(Interface):
|
|||||||
|
|
||||||
cloud_user = await self._prefs.get_cloud_user()
|
cloud_user = await self._prefs.get_cloud_user()
|
||||||
|
|
||||||
self._alexa_config = alexa_config.CloudAlexaConfig(
|
alexa_conf = alexa_config.CloudAlexaConfig(
|
||||||
self._hass,
|
self._hass,
|
||||||
self.alexa_user_config,
|
self.alexa_user_config,
|
||||||
cloud_user,
|
cloud_user,
|
||||||
self._prefs,
|
self._prefs,
|
||||||
self.cloud,
|
self.cloud,
|
||||||
)
|
)
|
||||||
await self._alexa_config.async_initialize()
|
await alexa_conf.async_initialize()
|
||||||
|
self._alexa_config = alexa_conf
|
||||||
|
|
||||||
return self._alexa_config
|
return self._alexa_config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user