From 68200de4d2686c98b6ed25543ed7a9cee2c6b816 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Tue, 27 Feb 2024 15:49:52 -0500 Subject: [PATCH] Bad Request from supervisor should be error (#111162) --- homeassistant/components/hassio/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hassio/handler.py b/homeassistant/components/hassio/handler.py index 38762fbc648..9b8e6367647 100644 --- a/homeassistant/components/hassio/handler.py +++ b/homeassistant/components/hassio/handler.py @@ -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()