mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +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):
|
||||
""" 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
|
||||
self.device_scanner.scan_devices())
|
||||
|
Loading…
x
Reference in New Issue
Block a user