Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust config-flow type hints in firmata #72502

Merged
merged 1 commit into from May 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion 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
Expand All @@ -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.
Expand Down