mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Fix proxy data passthrougth (#592)
* Fix proxy data passthrougth * Update homeassistant.py
This commit is contained in:
parent
dcefec7b99
commit
200c68f67f
@ -393,7 +393,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
headers[hdrs.AUTHORIZATION] = f'Bearer {self.access_token}'
|
headers[hdrs.AUTHORIZATION] = f'Bearer {self.access_token}'
|
||||||
|
|
||||||
async with getattr(self.sys_websession_ssl, method)(
|
async with getattr(self.sys_websession_ssl, method)(
|
||||||
url, timeout=timeout, json=json, headers=headers
|
url, data=data, timeout=timeout, json=json, headers=headers
|
||||||
) as resp:
|
) as resp:
|
||||||
# Access token expired
|
# Access token expired
|
||||||
if resp.status == 401 and self.refresh_token:
|
if resp.status == 401 and self.refresh_token:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user