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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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