diff --git a/custom_components/zha_map/neighbour.py b/custom_components/zha_map/neighbour.py index fdc7692..c9fefcc 100644 --- a/custom_components/zha_map/neighbour.py +++ b/custom_components/zha_map/neighbour.py @@ -119,17 +119,13 @@ async def scan(self): """Scan for neighbours.""" idx = 0 while True: - try: - status, val = await self.device.zdo.request( - zdo_t.ZDOCmd.Mgmt_Lqi_req, idx, tries=3, delay=1 - ) - self.debug("neighbor request Status: %s. Response: %r", status, val) - if zdo_t.Status.SUCCESS != status: - self.supported = False - self.debug("device does not support 'Mgmt_Lqi_req'") - return - except asyncio.TimeoutError: - self.debug("'Mgmt_Lqi_req' timedout") + status, val = await self.device.zdo.request( + zdo_t.ZDOCmd.Mgmt_Lqi_req, idx, tries=3, delay=1 + ) + self.debug("neighbor request Status: %s. Response: %r", status, val) + if zdo_t.Status.SUCCESS != status: + self.supported = False + self.debug("device does not support 'Mgmt_Lqi_req'") return neighbors = val.NeighborTableList