Bugfix passwrod (#584)

This commit is contained in:
Pascal Vizeli 2018-07-21 19:07:22 +02:00 committed by GitHub
parent f51c9704e0
commit fa9e20385e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
headers[hdrs.AUTHORIZATION] = f'Bearer {self.access_token}'
async with getattr(self.sys_websession_ssl, method)(
url, timeout=timeout, json=json
url, timeout=timeout, json=json, headers=headers
) as resp:
# Access token expired
if resp.status == 401 and self.refresh_token: