mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 17:15:19 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user