Improve data entry flow typing (#84030)

pull/84044/head
Erik Montnemery 2022-12-15 12:41:20 +01:00 committed by GitHub
parent 033a16b67e
commit bf4c399b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ class AuthManagerFlowManager(data_entry_flow.FlowManager):
async def async_create_flow(
self,
handler_key: Any,
handler_key: str,
*,
context: dict[str, Any] | None = None,
data: dict[str, Any] | None = None,

View File

@ -40,7 +40,7 @@ class MfaFlowManager(data_entry_flow.FlowManager):
async def async_create_flow( # type: ignore[override]
self,
handler_key: Any,
handler_key: str,
*,
context: dict[str, Any],
data: dict[str, Any],

View File

@ -53,7 +53,7 @@ class RepairsFlowManager(data_entry_flow.FlowManager):
async def async_create_flow(
self,
handler_key: Any,
handler_key: str,
*,
context: dict[str, Any] | None = None,
data: dict[str, Any] | None = None,

View File

@ -813,7 +813,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager):
return result
async def async_create_flow(
self, handler_key: Any, *, context: dict | None = None, data: Any = None
self, handler_key: str, *, context: dict | None = None, data: Any = None
) -> ConfigFlow:
"""Create a flow for specified handler.
@ -1647,7 +1647,7 @@ class OptionsFlowManager(data_entry_flow.FlowManager):
async def async_create_flow(
self,
handler_key: Any,
handler_key: str,
*,
context: dict[str, Any] | None = None,
data: dict[str, Any] | None = None,

View File

@ -151,7 +151,7 @@ class FlowManager(abc.ABC):
@abc.abstractmethod
async def async_create_flow(
self,
handler_key: Any,
handler_key: str,
*,
context: dict[str, Any] | None = None,
data: dict[str, Any] | None = None,