mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Don't raise WLED user flow unique_id check (#124481)
This commit is contained in:
parent
22c322fc37
commit
8023cbcc38
@ -46,7 +46,9 @@ class WLEDFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
except WLEDConnectionError:
|
except WLEDConnectionError:
|
||||||
errors["base"] = "cannot_connect"
|
errors["base"] = "cannot_connect"
|
||||||
else:
|
else:
|
||||||
await self.async_set_unique_id(device.info.mac_address)
|
await self.async_set_unique_id(
|
||||||
|
device.info.mac_address, raise_on_progress=False
|
||||||
|
)
|
||||||
self._abort_if_unique_id_configured(
|
self._abort_if_unique_id_configured(
|
||||||
updates={CONF_HOST: user_input[CONF_HOST]}
|
updates={CONF_HOST: user_input[CONF_HOST]}
|
||||||
)
|
)
|
||||||
@ -56,8 +58,6 @@ class WLEDFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
CONF_HOST: user_input[CONF_HOST],
|
CONF_HOST: user_input[CONF_HOST],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
user_input = {}
|
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user