From cde6e007bf5efd5dcdac2cf1724ba513142d4029 Mon Sep 17 00:00:00 2001 From: ollo69 <60491700+ollo69@users.noreply.github.com> Date: Wed, 10 Nov 2021 07:53:05 +0100 Subject: [PATCH] Remove 'UnicodeDecodeError' exception in AsusWrt (#59447) --- homeassistant/components/asuswrt/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/asuswrt/router.py b/homeassistant/components/asuswrt/router.py index c186e182f5c..3d2cac85569 100644 --- a/homeassistant/components/asuswrt/router.py +++ b/homeassistant/components/asuswrt/router.py @@ -430,7 +430,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, UnicodeDecodeError) as exc: + except OSError as exc: _LOGGER.warning("Error calling method async_get_nvram(%s): %s", info_type, exc) return info