Improve data entry flow typing (#84030)
parent
033a16b67e
commit
bf4c399b19
|
@ -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,
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue