mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Catch AsusWRT UnicodeDecodeError in get_nvram call (#51811)
This commit is contained in:
parent
123e8f01a1
commit
4300484ca0
@ -424,7 +424,7 @@ async def _get_nvram_info(api: AsusWrt, info_type: str) -> dict[str, Any]:
|
||||
info = {}
|
||||
try:
|
||||
info = await api.async_get_nvram(info_type)
|
||||
except OSError as exc:
|
||||
except (OSError, UnicodeDecodeError) as exc:
|
||||
_LOGGER.warning("Error calling method async_get_nvram(%s): %s", info_type, exc)
|
||||
|
||||
return info
|
||||
|
Loading…
x
Reference in New Issue
Block a user