mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Adjust config-flow type hints in firmata (#72502)
This commit is contained in:
parent
9b60b092c6
commit
43e66b3af9
@ -1,11 +1,13 @@
|
|||||||
"""Config flow to configure firmata component."""
|
"""Config flow to configure firmata component."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from pymata_express.pymata_express_serial import serial
|
from pymata_express.pymata_express_serial import serial
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.const import CONF_NAME
|
from homeassistant.const import CONF_NAME
|
||||||
|
from homeassistant.data_entry_flow import FlowResult
|
||||||
|
|
||||||
from .board import get_board
|
from .board import get_board
|
||||||
from .const import CONF_SERIAL_PORT, DOMAIN
|
from .const import CONF_SERIAL_PORT, DOMAIN
|
||||||
@ -18,7 +20,7 @@ class FirmataFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
|
||||||
async def async_step_import(self, import_config: dict):
|
async def async_step_import(self, import_config: dict[str, Any]) -> FlowResult:
|
||||||
"""Import a firmata board as a config entry.
|
"""Import a firmata board as a config entry.
|
||||||
|
|
||||||
This flow is triggered by `async_setup` for configured boards.
|
This flow is triggered by `async_setup` for configured boards.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user