Define data flow result type (#49260)
* Define data flow result type * Revert explicit definitions * Fix tests * Specific mypy ignore
This commit is contained in:
parent
dafc7a072c
commit
80f66f301b
20 changed files with 169 additions and 114 deletions
|
@ -9,6 +9,7 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.auth.models import User
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultDict
|
||||
|
||||
from . import (
|
||||
MULTI_FACTOR_AUTH_MODULE_SCHEMA,
|
||||
|
@ -189,7 +190,7 @@ class TotpSetupFlow(SetupFlow):
|
|||
|
||||
async def async_step_init(
|
||||
self, user_input: dict[str, str] | None = None
|
||||
) -> dict[str, Any]:
|
||||
) -> FlowResultDict:
|
||||
"""Handle the first step of setup flow.
|
||||
|
||||
Return self.async_show_form(step_id='init') if user_input is None.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue