mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 00:27:19 +00:00
Fix device tracker waiting forever when platform gets stuck
This commit is contained in:
parent
ec557f8d44
commit
c3fc19353b
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user