Improve data entry flow typing (#84030)

This commit is contained in:
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

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