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

@ -1,10 +1,12 @@
"""Adds config flow for Mill integration."""
from typing import Any
from mill import Mill
from mill_local import Mill as MillLocal
import voluptuous as vol
from homeassistant.config_entries import ConfigFlow
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
from homeassistant.const import CONF_IP_ADDRESS, CONF_PASSWORD, CONF_USERNAME
from homeassistant.helpers.aiohttp_client import async_get_clientsession
@ -16,7 +18,9 @@ class MillConfigFlow(ConfigFlow, domain=DOMAIN):
VERSION = 1
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."""
data_schema = vol.Schema(
{