mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Check netgear device_tracker link_rate to ensure device is connected (#30581)
* check link_rate to ensure device is connected * black
This commit is contained in:
parent
208a123c47
commit
669844e4dd
@ -110,7 +110,10 @@ class NetgearDeviceScanner(DeviceScanner):
|
|||||||
or dev.name in self.excluded_devices
|
or dev.name in self.excluded_devices
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if tracked:
|
|
||||||
|
# when link_rate is None this means the router still knows about
|
||||||
|
# the device, but it is not in range.
|
||||||
|
if tracked and dev.link_rate is not None:
|
||||||
devices.append(dev.mac)
|
devices.append(dev.mac)
|
||||||
if (
|
if (
|
||||||
self.tracked_accesspoints
|
self.tracked_accesspoints
|
||||||
|
Loading…
x
Reference in New Issue
Block a user