mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix rfxtrx typing (#79125)
This commit is contained in:
parent
0950674146
commit
9c62c55f42
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import binascii
|
import binascii
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable, Mapping
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, NamedTuple, cast
|
from typing import Any, NamedTuple, cast
|
||||||
@ -116,7 +116,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
return True
|
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."""
|
"""Construct a rfx object based on config."""
|
||||||
|
|
||||||
modes = config.get(CONF_PROTOCOLS)
|
modes = config.get(CONF_PROTOCOLS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user