mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix mesh role for Fritz old devices (#66369)
This commit is contained in:
parent
1053314a30
commit
e069074f9e
@ -331,10 +331,18 @@ class FritzBoxTools(update_coordinator.DataUpdateCoordinator):
|
|||||||
_LOGGER.debug("Checking host info for FRITZ!Box device %s", self.host)
|
_LOGGER.debug("Checking host info for FRITZ!Box device %s", self.host)
|
||||||
self._update_available, self._latest_firmware = self._update_device_info()
|
self._update_available, self._latest_firmware = self._update_device_info()
|
||||||
|
|
||||||
|
if (
|
||||||
|
"Hosts1" not in self.connection.services
|
||||||
|
or "X_AVM-DE_GetMeshListPath"
|
||||||
|
not in self.connection.services["Hosts1"].actions
|
||||||
|
):
|
||||||
|
self.mesh_role = MeshRoles.NONE
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
topology = self.fritz_hosts.get_mesh_topology()
|
topology = self.fritz_hosts.get_mesh_topology()
|
||||||
except FritzActionError:
|
except FritzActionError:
|
||||||
self.mesh_role = MeshRoles.SLAVE
|
self.mesh_role = MeshRoles.SLAVE
|
||||||
|
# Avoid duplicating device trackers
|
||||||
return
|
return
|
||||||
|
|
||||||
_LOGGER.debug("Checking devices for FRITZ!Box device %s", self.host)
|
_LOGGER.debug("Checking devices for FRITZ!Box device %s", self.host)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user