Improve aurora_abb_powerone typing (#70919)

This commit is contained in:
Marc Mueller
2022-04-28 07:38:54 +02:00
committed by GitHub
parent 2e3e7f1e94
commit e6da1d7318

View File

@@ -1,6 +1,7 @@
"""Config flow for Aurora ABB PowerOne integration."""
from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
@@ -27,7 +28,7 @@ _LOGGER = logging.getLogger(__name__)
def validate_and_connect(
hass: core.HomeAssistant, data: dict[str, Any]
hass: core.HomeAssistant, data: Mapping[str, Any]
) -> dict[str, str]:
"""Validate the user input allows us to connect.