mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Set hassio api json encoding to avoid looking it up every request (#109032)
This commit is contained in:
parent
5183eed0bc
commit
e9e289286e
@ -591,7 +591,7 @@ class HassIO:
|
|||||||
if return_text:
|
if return_text:
|
||||||
return await request.text(encoding="utf-8")
|
return await request.text(encoding="utf-8")
|
||||||
|
|
||||||
return await request.json()
|
return await request.json(encoding="utf-8")
|
||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.error("Timeout on %s request", command)
|
_LOGGER.error("Timeout on %s request", command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user