From 43e66b3af986c6298bf1a25a4780258032d84443 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 27 May 2022 10:44:31 +0200 Subject: [PATCH] Adjust config-flow type hints in firmata (#72502) --- homeassistant/components/firmata/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/firmata/config_flow.py b/homeassistant/components/firmata/config_flow.py index b4a9ada2c27..8aa4cfb836c 100644 --- a/homeassistant/components/firmata/config_flow.py +++ b/homeassistant/components/firmata/config_flow.py @@ -1,11 +1,13 @@ """Config flow to configure firmata component.""" import logging +from typing import Any from pymata_express.pymata_express_serial import serial from homeassistant import config_entries from homeassistant.const import CONF_NAME +from homeassistant.data_entry_flow import FlowResult from .board import get_board from .const import CONF_SERIAL_PORT, DOMAIN @@ -18,7 +20,7 @@ class FirmataFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): 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. This flow is triggered by `async_setup` for configured boards.