Remove configuration.yaml support for the velbus component (#60411)

This commit is contained in:
Maikel Punie 2021-11-29 16:33:26 +01:00 committed by GitHub
parent c407e24a18
commit f18fe342ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 58 deletions

View file

@ -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)