Import Callable from collections.abc (#60354)
parent
4360fb733f
commit
de78c4f0f8
|
@ -1,8 +1,9 @@
|
|||
"""Support for Azure DevOps sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
from aioazuredevops.builds import DevOpsBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
"""AVM FRITZ!Box binary sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
from typing import Any, Callable, Literal
|
||||
from typing import Any, Literal
|
||||
|
||||
from fritzconnection.core.exceptions import (
|
||||
FritzActionError,
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Callable
|
||||
import logging
|
||||
from typing import Callable, TypeVar
|
||||
from typing import TypeVar
|
||||
|
||||
from pyfronius import Fronius, FroniusError
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
"""Class to hold all sensor accessories."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
import logging
|
||||
from typing import Callable, NamedTuple
|
||||
from typing import NamedTuple
|
||||
|
||||
from pyhap.const import CATEGORY_SENSOR
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""The lookin integration climate platform."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Coroutine
|
||||
from collections.abc import Callable, Coroutine
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
from typing import Any, Callable, Final, cast
|
||||
from typing import Any, Final, cast
|
||||
|
||||
from aiolookin import Climate, MeteoSensor, SensorID
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
"""The met component."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
from random import randrange
|
||||
from types import MappingProxyType
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
import metno
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
"""Support for RDW binary sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Callable
|
||||
|
||||
from vehicle import Vehicle
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
"""Support for RDW sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from datetime import date
|
||||
from typing import Callable
|
||||
|
||||
from vehicle import Vehicle
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
"""Constants used by Speedtest.net."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Callable, Final
|
||||
from typing import Final
|
||||
|
||||
from homeassistant.components.sensor import (
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
"""Constants for the Tuya integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass, field
|
||||
from enum import Enum
|
||||
from typing import Callable
|
||||
|
||||
from tuya_iot import TuyaCloudOpenAPIEndpoint
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
"""The ViCare integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
import logging
|
||||
from typing import Callable
|
||||
|
||||
from PyViCare.PyViCare import PyViCare
|
||||
from PyViCare.PyViCareDevice import Device
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Viessmann ViCare sensor device."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from contextlib import suppress
|
||||
from dataclasses import dataclass
|
||||
import logging
|
||||
from typing import Callable
|
||||
|
||||
from PyViCare.PyViCareDevice import Device
|
||||
from PyViCare.PyViCareUtils import (
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
"""Support for WLED sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Callable
|
||||
|
||||
from wled import Device as WLEDDevice
|
||||
|
||||
|
|
Loading…
Reference in New Issue