Fix IPv6 sensor is only loaded when Fritz!Box is in router mode (#83757)

do not check ipv6 when device is not a router
pull/59788/head
Michael 2022-12-11 19:22:54 +01:00 committed by GitHub
parent 127eca3c35
commit 4fbaefe55a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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: