mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 23:41:45 +01:00
Simple time.sleep in place of threading wait due to upgraded zeroconf (#2307)
This commit is contained in:
parent
3b9d126322
commit
2d79d21c50
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class HostResolver(RecordUpdateListener):
|
|||
next_ = now + delay
|
||||
delay *= 2
|
||||
|
||||
zc.wait(min(next_, last) - now)
|
||||
time.sleep(min(next_, last) - now)
|
||||
now = time.time()
|
||||
finally:
|
||||
zc.remove_listener(self)
|
||||
|
|
Loading…
Reference in a new issue