Set hassio api json encoding to avoid looking it up every request (#109032)

This commit is contained in:
J. Nick Koston 2024-01-29 03:32:53 -10:00 committed by GitHub
parent 5183eed0bc
commit e9e289286e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -591,7 +591,7 @@ class HassIO:
if return_text:
return await request.text(encoding="utf-8")
return await request.json()
return await request.json(encoding="utf-8")
except asyncio.TimeoutError:
_LOGGER.error("Timeout on %s request", command)