mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Default to on if logged in (#18766)
This commit is contained in:
parent
0bdf96d94c
commit
e06fa0d2d0
@ -253,7 +253,7 @@ class Cloud:
|
|||||||
|
|
||||||
info = await self.hass.async_add_job(load_config)
|
info = await self.hass.async_add_job(load_config)
|
||||||
|
|
||||||
await self.prefs.async_initialize(not info)
|
await self.prefs.async_initialize(bool(info))
|
||||||
|
|
||||||
if info is None:
|
if info is None:
|
||||||
return
|
return
|
||||||
|
@ -28,6 +28,7 @@ class CloudPreferences:
|
|||||||
PREF_GOOGLE_ALLOW_UNLOCK: False,
|
PREF_GOOGLE_ALLOW_UNLOCK: False,
|
||||||
PREF_CLOUDHOOKS: {}
|
PREF_CLOUDHOOKS: {}
|
||||||
}
|
}
|
||||||
|
await self._store.async_save(prefs)
|
||||||
|
|
||||||
self._prefs = prefs
|
self._prefs = prefs
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user