From fa9e20385ed7ac2e1c2fca36b46d65ab9e406c0b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 21 Jul 2018 19:07:22 +0200 Subject: [PATCH] Bugfix passwrod (#584) --- hassio/homeassistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/homeassistant.py b/hassio/homeassistant.py index 404b0686a..588d45ca1 100644 --- a/hassio/homeassistant.py +++ b/hassio/homeassistant.py @@ -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: