Default to on if logged in (#18766)

pull/18769/head
Paulus Schoutsen 2018-11-28 22:17:37 +01:00 committed by GitHub
parent 0bdf96d94c
commit e06fa0d2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,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

View File

@ -28,6 +28,7 @@ class CloudPreferences:
PREF_GOOGLE_ALLOW_UNLOCK: False,
PREF_CLOUDHOOKS: {}
}
await self._store.async_save(prefs)
self._prefs = prefs