Cleanup AWS config flow (#131244)

This commit is contained in:
epenet 2024-11-22 12:22:26 +01:00 committed by GitHub
parent 37edf982ca
commit 849ebd1435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,4 @@ class AWSFlowHandler(ConfigFlow, domain=DOMAIN):
async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult:
"""Import a config entry."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
return self.async_create_entry(title="configuration.yaml", data=import_data)