mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Increase the timeout for flux_led directed discovery (#65222)
This commit is contained in:
parent
99f56579a5
commit
7552404f70
@ -51,6 +51,7 @@ FLUX_LED_EXCEPTIONS: Final = (
|
||||
|
||||
STARTUP_SCAN_TIMEOUT: Final = 5
|
||||
DISCOVER_SCAN_TIMEOUT: Final = 10
|
||||
DIRECTED_DISCOVERY_TIMEOUT: Final = 15
|
||||
|
||||
CONF_MODEL: Final = "model"
|
||||
CONF_MODEL_NUM: Final = "model_num"
|
||||
|
@ -38,7 +38,7 @@ from .const import (
|
||||
CONF_REMOTE_ACCESS_ENABLED,
|
||||
CONF_REMOTE_ACCESS_HOST,
|
||||
CONF_REMOTE_ACCESS_PORT,
|
||||
DISCOVER_SCAN_TIMEOUT,
|
||||
DIRECTED_DISCOVERY_TIMEOUT,
|
||||
DOMAIN,
|
||||
FLUX_LED_DISCOVERY,
|
||||
)
|
||||
@ -194,7 +194,7 @@ async def async_discover_device(
|
||||
"""Direct discovery at a single ip instead of broadcast."""
|
||||
# If we are missing the unique_id we should be able to fetch it
|
||||
# from the device by doing a directed discovery at the host only
|
||||
for device in await async_discover_devices(hass, DISCOVER_SCAN_TIMEOUT, host):
|
||||
for device in await async_discover_devices(hass, DIRECTED_DISCOVERY_TIMEOUT, host):
|
||||
if device[ATTR_IPADDR] == host:
|
||||
return device
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user