Remove configuration.yaml support for the velbus component (#60411)
This commit is contained in:
parent
c407e24a18
commit
f18fe342ac
3 changed files with 4 additions and 58 deletions
|
@ -82,13 +82,3 @@ class VelbusConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
),
|
||||
errors=self._errors,
|
||||
)
|
||||
|
||||
async def async_step_import(self, user_input: dict[str, Any]) -> FlowResult:
|
||||
"""Import a config entry."""
|
||||
user_input[CONF_NAME] = "Velbus Import"
|
||||
prt = user_input[CONF_PORT]
|
||||
if self._prt_in_configuration_exists(prt):
|
||||
# if the velbus import is already in the config
|
||||
# we should not proceed the import
|
||||
return self.async_abort(reason="already_configured")
|
||||
return await self.async_step_user(user_input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue