Fix 0.76 beta2 hassio token issue (#15987)

This commit is contained in:
Jason Hu authored and Paulus Schoutsen committed 2018-08-15 09:56:05 +02:00
1 parent c31035d348
commit dc460f4d6a
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ def async_setup(hass, config):
refresh_token = None
if 'hassio_user' in data:
user = yield from hass.auth.async_get_user(data['hassio_user'])
if user:
if user and user.refresh_tokens:
refresh_token = list(user.refresh_tokens.values())[0]
if refresh_token is None: