Improve config flow type hints (part 1) (#124343)
* Improve config flow type hints * Revert sms
This commit is contained in:
parent
67bc568db6
commit
913e5404da
65 changed files with 348 additions and 114 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue