forked from home-assistant/core
Fix device tracker waiting forever when platform gets stuck
This commit is contained in:
@@ -157,7 +157,8 @@ class DeviceTracker(object):
|
|||||||
|
|
||||||
def update_devices(self, now):
|
def update_devices(self, now):
|
||||||
""" Update device states based on the found devices. """
|
""" Update device states based on the found devices. """
|
||||||
self.lock.acquire()
|
if not self.lock.acquire(False):
|
||||||
|
return
|
||||||
|
|
||||||
found_devices = set(dev.upper() for dev in
|
found_devices = set(dev.upper() for dev in
|
||||||
self.device_scanner.scan_devices())
|
self.device_scanner.scan_devices())
|
||||||
|
Reference in New Issue
Block a user