mirror of
https://github.com/home-assistant/core.git
synced 2026-09-15 10:06:33 -05:00
Bad Request from supervisor should be error (#111162)
This commit is contained in:
@@ -589,7 +589,7 @@ class HassIO:
|
||||
timeout=aiohttp.ClientTimeout(total=timeout),
|
||||
)
|
||||
|
||||
if request.status not in (HTTPStatus.OK, HTTPStatus.BAD_REQUEST):
|
||||
if request.status != HTTPStatus.OK:
|
||||
_LOGGER.error("%s return code %d", command, request.status)
|
||||
raise HassioAPIError()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user