From 0433d72ae6e2b7c0fc591c83b94eb7986c21cb01 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 1 Oct 2021 14:18:23 +0200 Subject: [PATCH] Use new format for logging exception - homeassistent/api.py (#3182) --- supervisor/homeassistant/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/supervisor/homeassistant/api.py b/supervisor/homeassistant/api.py index e12184827..5a8852a22 100644 --- a/supervisor/homeassistant/api.py +++ b/supervisor/homeassistant/api.py @@ -49,8 +49,9 @@ class HomeAssistantAPI(CoreSysAttributes): ssl=False, ) as resp: if resp.status != 200: - _LOGGER.error("Can't update Home Assistant access token!") - raise HomeAssistantAuthError() + raise HomeAssistantAuthError( + "Can't update Home Assistant access token!", _LOGGER.error + ) _LOGGER.info("Updated Home Assistant API token") tokens = await resp.json()