Improve config flow type hints (part 1) (#124343)

* Improve config flow type hints

* Revert sms
This commit is contained in:
epenet 2024-08-21 22:42:58 +02:00 committed by GitHub
parent 67bc568db6
commit 913e5404da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 348 additions and 114 deletions

View file

@ -63,7 +63,9 @@ class OctoPrintConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for OctoPrint."""
self._sessions: list[aiohttp.ClientSession] = []
async def async_step_user(self, user_input=None):
async def async_step_user(
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle the initial step."""
# When coming back from the progress steps, the user_input is stored in the
# instance variable instead of being passed in