mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix IPv6 sensor is only loaded when Fritz!Box is in router mode (#83757)
do not check ipv6 when device is not a router
This commit is contained in:
parent
127eca3c35
commit
4fbaefe55a
@ -669,6 +669,9 @@ class AvmWrapper(FritzBoxTools):
|
|||||||
def wrap_external_ipv6() -> str:
|
def wrap_external_ipv6() -> str:
|
||||||
return str(self.fritz_status.external_ipv6)
|
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))
|
return bool(await self.hass.async_add_executor_job(wrap_external_ipv6))
|
||||||
|
|
||||||
async def async_get_connection_info(self) -> ConnectionInfo:
|
async def async_get_connection_info(self) -> ConnectionInfo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user