mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
Set hassio api json encoding to avoid looking it up every request (#109032)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user