Remove LIFX bulb discovery from the inflight list if it fails to connect (#71673)
Remove the bulb discovery from the inflight list if it fails to connect Signed-off-by: Avi Miller <me@dje.li>pull/71792/head
parent
80d332ddf1
commit
f487c04e02
|
@ -416,6 +416,8 @@ class LIFXManager:
|
|||
if color_resp is None or version_resp is None:
|
||||
_LOGGER.error("Failed to connect to %s", bulb.ip_addr)
|
||||
bulb.registered = False
|
||||
if bulb.mac_addr in self.discoveries_inflight:
|
||||
self.discoveries_inflight.pop(bulb.mac_addr)
|
||||
else:
|
||||
bulb.timeout = MESSAGE_TIMEOUT
|
||||
bulb.retry_count = MESSAGE_RETRIES
|
||||
|
|
Loading…
Reference in New Issue