mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Default to on if logged in (#18766)
This commit is contained in:
committed by
Paulus Schoutsen
parent
f860cac4ea
commit
311c796da7
@@ -248,7 +248,7 @@ class Cloud:
|
||||
|
||||
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:
|
||||
return
|
||||
|
@@ -27,6 +27,7 @@ class CloudPreferences:
|
||||
PREF_ENABLE_GOOGLE: logged_in,
|
||||
PREF_GOOGLE_ALLOW_UNLOCK: False,
|
||||
}
|
||||
await self._store.async_save(prefs)
|
||||
|
||||
self._prefs = prefs
|
||||
|
||||
|
Reference in New Issue
Block a user