Fix rfxtrx typing (#79125)

This commit is contained in:
Marc Mueller 2022-09-27 00:32:32 +02:00 committed by GitHub
parent 0950674146
commit 9c62c55f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import asyncio
import binascii
from collections.abc import Callable
from collections.abc import Callable, Mapping
import copy
import logging
from typing import Any, NamedTuple, cast
@ -116,7 +116,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return True
def _create_rfx(config: dict[str, Any]) -> rfxtrxmod.Connect:
def _create_rfx(config: Mapping[str, Any]) -> rfxtrxmod.Connect:
"""Construct a rfx object based on config."""
modes = config.get(CONF_PROTOCOLS)