mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
[climate-1.0] Bugfix evohome showstopper (#25139)
* initial commit * small tweak
This commit is contained in:
parent
e6a2dde19a
commit
3480e6229a
@ -129,7 +129,7 @@ class EvoBroker:
|
||||
self.config = self.status = self.timers = {}
|
||||
|
||||
self.client = self.tcs = None
|
||||
self._app_storage = None
|
||||
self._app_storage = {}
|
||||
|
||||
hass.data[DOMAIN] = {}
|
||||
hass.data[DOMAIN]['broker'] = self
|
||||
@ -195,6 +195,9 @@ class EvoBroker:
|
||||
store = self.hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY)
|
||||
app_storage = self._app_storage = await store.async_load()
|
||||
|
||||
if app_storage is None:
|
||||
app_storage = self._app_storage = {}
|
||||
|
||||
if app_storage.get(CONF_USERNAME) == self.params[CONF_USERNAME]:
|
||||
refresh_token = app_storage.get(CONF_REFRESH_TOKEN)
|
||||
access_token = app_storage.get(CONF_ACCESS_TOKEN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user