mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Use new format for logging exception - homeassistent/api.py (#3182)
This commit is contained in:
parent
d33beb06cd
commit
0433d72ae6
@ -49,8 +49,9 @@ class HomeAssistantAPI(CoreSysAttributes):
|
|||||||
ssl=False,
|
ssl=False,
|
||||||
) as resp:
|
) as resp:
|
||||||
if resp.status != 200:
|
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")
|
_LOGGER.info("Updated Home Assistant API token")
|
||||||
tokens = await resp.json()
|
tokens = await resp.json()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user