Cleanup unused import in google config flow (#124711)

This commit is contained in:
epenet 2024-08-27 16:36:07 +02:00 committed by GitHub
parent de8bbaadd1
commit bcfc7ea481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,18 +94,6 @@ class OAuth2FlowHandler(
"prompt": "consent",
}
async def async_step_import(self, import_data: dict[str, Any]) -> ConfigFlowResult:
"""Import existing auth into a new config entry."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
implementations = await config_entry_oauth2_flow.async_get_implementations(
self.hass, self.DOMAIN
)
assert len(implementations) == 1
self.flow_impl = list(implementations.values())[0]
self.external_data = import_data
return await super().async_step_creation(import_data)
async def async_step_auth(
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult: