mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Cleanup unused import in google config flow (#124711)
This commit is contained in:
parent
de8bbaadd1
commit
bcfc7ea481
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user