Define data flow result type (#49260)

* Define data flow result type

* Revert explicit definitions

* Fix tests

* Specific mypy ignore
This commit is contained in:
Ruslan Sayfutdinov 2021-04-15 18:17:07 +01:00 committed by GitHub
parent dafc7a072c
commit 80f66f301b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 169 additions and 114 deletions

View file

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