mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Improve wiffi config flow handling (#63167)
Don't use `async_set_unique_id` and `_abort_if_unique_id_configured` because TCP port number is not a unique id. Use `_async_abort_entries_match` instead.
This commit is contained in:
parent
81aff973ea
commit
9ead2c7148
@ -38,8 +38,7 @@ class WiffiFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
return self._async_show_form()
|
||||
|
||||
# received input from form or configuration.yaml
|
||||
await self.async_set_unique_id(user_input[CONF_PORT])
|
||||
self._abort_if_unique_id_configured()
|
||||
self._async_abort_entries_match(user_input)
|
||||
|
||||
try:
|
||||
# try to start server to check whether port is in use
|
||||
|
Loading…
x
Reference in New Issue
Block a user