Skip to content

Commit

Permalink
Bad Request from supervisor should be error (#111162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Feb 27, 2024
1 parent 2a8e5ce commit 68200de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/hassio/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ async def send_command(
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()

Expand Down

0 comments on commit 68200de

Please sign in to comment.