From 4fbaefe55a152282b6bf9d9f1cf7ce7981bee7f2 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 11 Dec 2022 19:22:54 +0100 Subject: [PATCH] Fix IPv6 sensor is only loaded when Fritz!Box is in router mode (#83757) do not check ipv6 when device is not a router --- homeassistant/components/fritz/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/fritz/common.py b/homeassistant/components/fritz/common.py index 5af4f0c2239..14e0f154374 100644 --- a/homeassistant/components/fritz/common.py +++ b/homeassistant/components/fritz/common.py @@ -669,6 +669,9 @@ class AvmWrapper(FritzBoxTools): def wrap_external_ipv6() -> str: return str(self.fritz_status.external_ipv6) + if not self.device_is_router: + return False + return bool(await self.hass.async_add_executor_job(wrap_external_ipv6)) async def async_get_connection_info(self) -> ConnectionInfo: