Adjust to recommended propcache.api import paths (#136150)
parent
57b17472d7
commit
40eb8b91cc
|
@ -11,7 +11,7 @@ import uuid
|
||||||
import attr
|
import attr
|
||||||
from attr import Attribute
|
from attr import Attribute
|
||||||
from attr.setters import validate
|
from attr.setters import validate
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.const import __version__
|
from homeassistant.const import __version__
|
||||||
from homeassistant.data_entry_flow import FlowContext, FlowResult
|
from homeassistant.data_entry_flow import FlowContext, FlowResult
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.update import UpdateDeviceClass, UpdateEntity
|
from homeassistant.components.update import UpdateDeviceClass, UpdateEntity
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -7,7 +7,7 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any, Final, final
|
from typing import TYPE_CHECKING, Any, Final, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -9,7 +9,7 @@ from dataclasses import dataclass
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Protocol, cast
|
from typing import Any, Protocol, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import websocket_api
|
from homeassistant.components import websocket_api
|
||||||
|
|
|
@ -7,7 +7,7 @@ from collections.abc import AsyncIterator, Callable, Coroutine
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Protocol
|
from typing import Any, Protocol
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
|
|
|
@ -7,7 +7,7 @@ from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
from typing import Literal, final
|
from typing import Literal, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -7,7 +7,7 @@ from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -18,7 +18,7 @@ from typing import Any, Final, final
|
||||||
|
|
||||||
from aiohttp import hdrs, web
|
from aiohttp import hdrs, web
|
||||||
import attr
|
import attr
|
||||||
from propcache import cached_property, under_cached_property
|
from propcache.api import cached_property, under_cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from webrtc_models import RTCIceCandidateInit, RTCIceServer
|
from webrtc_models import RTCIceCandidateInit, RTCIceServer
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import functools as ft
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Literal, final
|
from typing import Any, Literal, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -9,7 +9,7 @@ import functools as ft
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import date, timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import UTC, datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||||
import asyncio
|
import asyncio
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components import zone
|
from homeassistant.components import zone
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -10,7 +10,7 @@ from types import ModuleType
|
||||||
from typing import Any, Final, Protocol, final
|
from typing import Any, Final, Protocol, final
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import util
|
from homeassistant import util
|
||||||
|
|
|
@ -16,7 +16,7 @@ from async_upnp_client.const import NotificationSubType
|
||||||
from async_upnp_client.exceptions import UpnpActionError, UpnpConnectionError, UpnpError
|
from async_upnp_client.exceptions import UpnpActionError, UpnpConnectionError, UpnpError
|
||||||
from async_upnp_client.profiles.dlna import ContentDirectoryErrorCode, DmsDevice
|
from async_upnp_client.profiles.dlna import ContentDirectoryErrorCode, DmsDevice
|
||||||
from didl_lite import didl_lite
|
from didl_lite import didl_lite
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components import ssdp
|
from homeassistant.components import ssdp
|
||||||
from homeassistant.components.media_player import BrowseError, MediaClass
|
from homeassistant.components.media_player import BrowseError, MediaClass
|
||||||
|
|
|
@ -15,7 +15,7 @@ from doorbirdpy import (
|
||||||
DoorBirdScheduleEntryOutput,
|
DoorBirdScheduleEntryOutput,
|
||||||
DoorBirdScheduleEntrySchedule,
|
DoorBirdScheduleEntrySchedule,
|
||||||
)
|
)
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.const import ATTR_ENTITY_ID
|
from homeassistant.const import ATTR_ENTITY_ID
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -8,7 +8,7 @@ from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Self, final
|
from typing import Any, Self, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -9,7 +9,7 @@ import logging
|
||||||
import math
|
import math
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -7,7 +7,7 @@ import re
|
||||||
|
|
||||||
from haffmpeg.core import HAFFmpeg
|
from haffmpeg.core import HAFFmpeg
|
||||||
from haffmpeg.tools import IMAGE_JPEG, FFVersion, ImageFrame
|
from haffmpeg.tools import IMAGE_JPEG, FFVersion, ImageFrame
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
|
@ -9,7 +9,7 @@ from typing import Any
|
||||||
|
|
||||||
from fints.client import FinTS3PinTanClient
|
from fints.client import FinTS3PinTanClient
|
||||||
from fints.models import SEPAAccount
|
from fints.models import SEPAAccount
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
|
|
|
@ -11,7 +11,7 @@ from typing import Any, TypedDict
|
||||||
|
|
||||||
from aiohttp import hdrs, web, web_urldispatcher
|
from aiohttp import hdrs, web, web_urldispatcher
|
||||||
import jinja2
|
import jinja2
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from yarl import URL
|
from yarl import URL
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE
|
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE
|
||||||
|
|
|
@ -17,7 +17,7 @@ from aiohomekit.model.characteristics import (
|
||||||
)
|
)
|
||||||
from aiohomekit.model.services import Service, ServicesTypes
|
from aiohomekit.model.services import Service, ServicesTypes
|
||||||
from aiohomekit.utils import clamp_enum_to_char
|
from aiohomekit.utils import clamp_enum_to_char
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.climate import (
|
from homeassistant.components.climate import (
|
||||||
ATTR_HVAC_MODE,
|
ATTR_HVAC_MODE,
|
||||||
|
|
|
@ -6,7 +6,7 @@ from typing import Any
|
||||||
|
|
||||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||||
from aiohomekit.model.services import Service, ServicesTypes
|
from aiohomekit.model.services import Service, ServicesTypes
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
ATTR_POSITION,
|
ATTR_POSITION,
|
||||||
|
|
|
@ -6,7 +6,7 @@ from typing import Any
|
||||||
|
|
||||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||||
from aiohomekit.model.services import Service, ServicesTypes
|
from aiohomekit.model.services import Service, ServicesTypes
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.fan import (
|
from homeassistant.components.fan import (
|
||||||
DIRECTION_FORWARD,
|
DIRECTION_FORWARD,
|
||||||
|
|
|
@ -6,7 +6,7 @@ from typing import Any
|
||||||
|
|
||||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||||
from aiohomekit.model.services import Service, ServicesTypes
|
from aiohomekit.model.services import Service, ServicesTypes
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.humidifier import (
|
from homeassistant.components.humidifier import (
|
||||||
DEFAULT_MAX_HUMIDITY,
|
DEFAULT_MAX_HUMIDITY,
|
||||||
|
|
|
@ -6,7 +6,7 @@ from typing import Any
|
||||||
|
|
||||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||||
from aiohomekit.model.services import Service, ServicesTypes
|
from aiohomekit.model.services import Service, ServicesTypes
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
|
|
|
@ -7,7 +7,7 @@ from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -14,7 +14,7 @@ from typing import Final, final
|
||||||
|
|
||||||
from aiohttp import hdrs, web
|
from aiohttp import hdrs, web
|
||||||
import httpx
|
import httpx
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.http import KEY_AUTHENTICATED, KEY_HASS, HomeAssistantView
|
from homeassistant.components.http import KEY_AUTHENTICATED, KEY_HASS, HomeAssistantView
|
||||||
|
|
|
@ -10,7 +10,7 @@ import logging
|
||||||
import time
|
import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import ATTR_DEVICE_ID, ATTR_ID, ATTR_NAME
|
from homeassistant.const import ATTR_DEVICE_ID, ATTR_ID, ATTR_NAME
|
||||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from xknx import XKNX
|
from xknx import XKNX
|
||||||
from xknx.devices.light import ColorTemperatureType, Light as XknxLight, XYYColor
|
from xknx.devices.light import ColorTemperatureType, Light as XknxLight, XYYColor
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -21,7 +21,7 @@ from aiolifx.aiolifx import (
|
||||||
from aiolifx.connection import LIFXConnection
|
from aiolifx.connection import LIFXConnection
|
||||||
from aiolifx_themes.themes import ThemeLibrary, ThemePainter
|
from aiolifx_themes.themes import ThemeLibrary, ThemePainter
|
||||||
from awesomeversion import AwesomeVersion
|
from awesomeversion import AwesomeVersion
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
SIGNAL_STRENGTH_DECIBELS,
|
SIGNAL_STRENGTH_DECIBELS,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
from typing import Any, Final, Self, cast, final
|
from typing import Any, Final, Self, cast, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -9,7 +9,7 @@ import logging
|
||||||
import re
|
import re
|
||||||
from typing import TYPE_CHECKING, Any, final
|
from typing import TYPE_CHECKING, Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -6,7 +6,7 @@ from collections.abc import Callable, Mapping
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import TYPE_CHECKING, Any, Final, NamedTuple, cast
|
from typing import TYPE_CHECKING, Any, Final, NamedTuple, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from sqlalchemy.engine.row import Row
|
from sqlalchemy.engine.row import Row
|
||||||
|
|
||||||
from homeassistant.components.recorder.filters import Filters
|
from homeassistant.components.recorder.filters import Filters
|
||||||
|
|
|
@ -11,7 +11,7 @@ from chip.clusters import Objects as clusters
|
||||||
from chip.clusters.Objects import ClusterAttributeDescriptor, NullValue
|
from chip.clusters.Objects import ClusterAttributeDescriptor, NullValue
|
||||||
from matter_server.common.helpers.util import create_attribute_path
|
from matter_server.common.helpers.util import create_attribute_path
|
||||||
from matter_server.common.models import EventType, ServerInfoMessage
|
from matter_server.common.models import EventType, ServerInfoMessage
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceInfo
|
||||||
|
|
|
@ -21,7 +21,7 @@ import aiohttp
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from aiohttp.hdrs import CACHE_CONTROL, CONTENT_TYPE
|
from aiohttp.hdrs import CACHE_CONTROL, CONTENT_TYPE
|
||||||
from aiohttp.typedefs import LooseHeaders
|
from aiohttp.typedefs import LooseHeaders
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from yarl import URL
|
from yarl import URL
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ from nibe.coil import Coil, CoilData
|
||||||
from nibe.connection import Connection
|
from nibe.connection import Connection
|
||||||
from nibe.exceptions import CoilNotFoundException, ReadException
|
from nibe.exceptions import CoilNotFoundException, ReadException
|
||||||
from nibe.heatpump import HeatPump, Series
|
from nibe.heatpump import HeatPump, Series
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
||||||
|
|
|
@ -8,7 +8,7 @@ from functools import partial
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final, override
|
from typing import Any, final, override
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.components.persistent_notification as pn
|
import homeassistant.components.persistent_notification as pn
|
||||||
|
|
|
@ -10,7 +10,7 @@ import logging
|
||||||
from math import ceil, floor
|
from math import ceil, floor
|
||||||
from typing import TYPE_CHECKING, Any, Self, final
|
from typing import TYPE_CHECKING, Any, Self, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||||
from asyncio import sleep
|
from asyncio import sleep
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
|
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
|
||||||
|
|
||||||
from homeassistant.components.climate import (
|
from homeassistant.components.climate import (
|
||||||
|
|
|
@ -14,7 +14,7 @@ import threading
|
||||||
import time
|
import time
|
||||||
from typing import TYPE_CHECKING, Any, cast
|
from typing import TYPE_CHECKING, Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import psutil_home_assistant as ha_psutil
|
import psutil_home_assistant as ha_psutil
|
||||||
from sqlalchemy import create_engine, event as sqlalchemy_event, exc, select, update
|
from sqlalchemy import create_engine, event as sqlalchemy_event, exc, select, update
|
||||||
from sqlalchemy.engine import Engine
|
from sqlalchemy.engine import Engine
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from sqlalchemy.engine.row import Row
|
from sqlalchemy.engine.row import Row
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
|
@ -9,7 +9,7 @@ import functools as ft
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from roborock import HomeDataRoom
|
from roborock import HomeDataRoom
|
||||||
from roborock.code_mappings import RoborockCategory
|
from roborock.code_mappings import RoborockCategory
|
||||||
from roborock.containers import DeviceData, HomeDataDevice, HomeDataProduct, NetworkInfo
|
from roborock.containers import DeviceData, HomeDataDevice, HomeDataProduct, NetworkInfo
|
||||||
|
|
|
@ -8,7 +8,7 @@ from dataclasses import dataclass
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any, cast
|
from typing import TYPE_CHECKING, Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import websocket_api
|
from homeassistant.components import websocket_api
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -12,7 +12,7 @@ import logging
|
||||||
from math import ceil, floor, isfinite, log10
|
from math import ceil, floor, isfinite, log10
|
||||||
from typing import Any, Final, Self, cast, final, override
|
from typing import Any, Final, Self, cast, final, override
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import ( # noqa: F401
|
from homeassistant.const import ( # noqa: F401
|
||||||
|
|
|
@ -18,7 +18,7 @@ from aioshelly.exceptions import (
|
||||||
RpcCallError,
|
RpcCallError,
|
||||||
)
|
)
|
||||||
from aioshelly.rpc_device import RpcDevice, RpcUpdateType
|
from aioshelly.rpc_device import RpcDevice, RpcUpdateType
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.bluetooth import async_remove_scanner
|
from homeassistant.components.bluetooth import async_remove_scanner
|
||||||
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, TypedDict, cast, final
|
from typing import Any, TypedDict, cast, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import timedelta
|
||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -8,7 +8,7 @@ import itertools
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from propcache import under_cached_property
|
from propcache.api import under_cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.blueprint import CONF_USE_BLUEPRINT
|
from homeassistant.components.blueprint import CONF_USE_BLUEPRINT
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from tesla_fleet_api import EnergySpecific, VehicleSpecific
|
from tesla_fleet_api import EnergySpecific, VehicleSpecific
|
||||||
from tesla_fleet_api.const import Scope
|
from tesla_fleet_api.const import Scope
|
||||||
from teslemetry_stream import Signal
|
from teslemetry_stream import Signal
|
||||||
|
|
|
@ -6,7 +6,7 @@ from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from teslemetry_stream import Signal
|
from teslemetry_stream import Signal
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
|
|
|
@ -9,7 +9,7 @@ import logging
|
||||||
import re
|
import re
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -8,7 +8,7 @@ from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from python_otbr_api import tlv_parser
|
from python_otbr_api import tlv_parser
|
||||||
from python_otbr_api.tlv_parser import MeshcopTLVType
|
from python_otbr_api.tlv_parser import MeshcopTLVType
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from datetime import time, timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import final
|
from typing import final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -8,7 +8,7 @@ import datetime
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import frontend, websocket_api
|
from homeassistant.components import frontend, websocket_api
|
||||||
|
|
|
@ -21,7 +21,7 @@ from typing import Any, Final, TypedDict, final
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
import mutagen
|
import mutagen
|
||||||
from mutagen.id3 import ID3, TextFrame as ID3Text
|
from mutagen.id3 import ID3, TextFrame as ID3Text
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import ffmpeg, websocket_api
|
from homeassistant.components import ffmpeg, websocket_api
|
||||||
|
|
|
@ -16,7 +16,7 @@ from aiounifi.models.api import ApiItemT
|
||||||
from aiounifi.models.client import Client
|
from aiounifi.models.client import Client
|
||||||
from aiounifi.models.device import Device
|
from aiounifi.models.device import Device
|
||||||
from aiounifi.models.event import Event, EventKey
|
from aiounifi.models.event import Event, EventKey
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
DOMAIN as DEVICE_TRACKER_DOMAIN,
|
DOMAIN as DEVICE_TRACKER_DOMAIN,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import logging
|
||||||
from typing import Any, Final, final
|
from typing import Any, Final, final
|
||||||
|
|
||||||
from awesomeversion import AwesomeVersion, AwesomeVersionCompareException
|
from awesomeversion import AwesomeVersion, AwesomeVersionCompareException
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import websocket_api
|
from homeassistant.components import websocket_api
|
||||||
|
|
|
@ -9,7 +9,7 @@ from functools import partial
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any, final
|
from typing import TYPE_CHECKING, Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -8,7 +8,7 @@ import functools as ft
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, final
|
from typing import Any, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -20,7 +20,7 @@ from typing import (
|
||||||
final,
|
final,
|
||||||
)
|
)
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -8,7 +8,7 @@ from functools import partial
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
from zha.mixins import LogMixin
|
from zha.mixins import LogMixin
|
||||||
|
|
||||||
from homeassistant.const import ATTR_MANUFACTURER, ATTR_MODEL, ATTR_NAME, EntityCategory
|
from homeassistant.const import ATTR_MANUFACTURER, ATTR_MODEL, ATTR_NAME, EntityCategory
|
||||||
|
|
|
@ -25,7 +25,7 @@ from types import MappingProxyType
|
||||||
from typing import TYPE_CHECKING, Any, Self, cast
|
from typing import TYPE_CHECKING, Any, Self, cast
|
||||||
|
|
||||||
from async_interrupt import interrupt
|
from async_interrupt import interrupt
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from . import data_entry_flow, loader
|
from . import data_entry_flow, loader
|
||||||
|
|
|
@ -41,7 +41,7 @@ from typing import (
|
||||||
overload,
|
overload,
|
||||||
)
|
)
|
||||||
|
|
||||||
from propcache import cached_property, under_cached_property
|
from propcache.api import cached_property, under_cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from . import util
|
from . import util
|
||||||
|
|
|
@ -28,9 +28,9 @@ from .typing import UNDEFINED, UndefinedType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
# mypy cannot workout _cache Protocol with dataclasses
|
# mypy cannot workout _cache Protocol with dataclasses
|
||||||
from propcache import cached_property as under_cached_property
|
from propcache.api import cached_property as under_cached_property
|
||||||
else:
|
else:
|
||||||
from propcache import under_cached_property
|
from propcache.api import under_cached_property
|
||||||
|
|
||||||
|
|
||||||
DATA_REGISTRY: HassKey[AreaRegistry] = HassKey("area_registry")
|
DATA_REGISTRY: HassKey[AreaRegistry] = HassKey("area_registry")
|
||||||
|
|
|
@ -40,13 +40,13 @@ from .typing import UNDEFINED, UndefinedType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
# mypy cannot workout _cache Protocol with attrs
|
# mypy cannot workout _cache Protocol with attrs
|
||||||
from propcache import cached_property as under_cached_property
|
from propcache.api import cached_property as under_cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
||||||
from . import entity_registry
|
from . import entity_registry
|
||||||
else:
|
else:
|
||||||
from propcache import under_cached_property
|
from propcache.api import under_cached_property
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import time
|
||||||
from types import FunctionType
|
from types import FunctionType
|
||||||
from typing import TYPE_CHECKING, Any, Final, Literal, NotRequired, TypedDict, final
|
from typing import TYPE_CHECKING, Any, Final, Literal, NotRequired, TypedDict, final
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
|
@ -65,11 +65,11 @@ from .typing import UNDEFINED, UndefinedType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
# mypy cannot workout _cache Protocol with attrs
|
# mypy cannot workout _cache Protocol with attrs
|
||||||
from propcache import cached_property as under_cached_property
|
from propcache.api import cached_property as under_cached_property
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
else:
|
else:
|
||||||
from propcache import under_cached_property
|
from propcache.api import under_cached_property
|
||||||
|
|
||||||
DATA_REGISTRY: HassKey[EntityRegistry] = HassKey("entity_registry")
|
DATA_REGISTRY: HassKey[EntityRegistry] = HassKey("entity_registry")
|
||||||
EVENT_ENTITY_REGISTRY_UPDATED: EventType[EventEntityRegistryUpdatedData] = EventType(
|
EVENT_ENTITY_REGISTRY_UPDATED: EventType[EventEntityRegistryUpdatedData] = EventType(
|
||||||
|
|
|
@ -13,7 +13,7 @@ import sys
|
||||||
from types import FrameType
|
from types import FrameType
|
||||||
from typing import Any, cast
|
from typing import Any, cast
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant, async_get_hass_or_none
|
from homeassistant.core import HomeAssistant, async_get_hass_or_none
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
|
|
|
@ -12,7 +12,7 @@ from itertools import groupby
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.homeassistant.exposed_entities import async_should_expose
|
from homeassistant.components.homeassistant.exposed_entities import async_should_expose
|
||||||
|
|
|
@ -16,7 +16,7 @@ from types import MappingProxyType
|
||||||
from typing import Any, Literal, TypedDict, cast, overload
|
from typing import Any, Literal, TypedDict, cast, overload
|
||||||
|
|
||||||
import async_interrupt
|
import async_interrupt
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import exceptions
|
from homeassistant import exceptions
|
||||||
|
|
|
@ -13,7 +13,7 @@ import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
EVENT_HOMEASSISTANT_FINAL_WRITE,
|
EVENT_HOMEASSISTANT_FINAL_WRITE,
|
||||||
|
|
|
@ -44,7 +44,7 @@ from jinja2.sandbox import ImmutableSandboxedEnvironment
|
||||||
from jinja2.utils import Namespace
|
from jinja2.utils import Namespace
|
||||||
from lru import LRU
|
from lru import LRU
|
||||||
import orjson
|
import orjson
|
||||||
from propcache import under_cached_property
|
from propcache.api import under_cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
|
@ -13,7 +13,7 @@ from typing import Any, Generic, Protocol, TypeVar
|
||||||
import urllib.error
|
import urllib.error
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
|
|
@ -25,7 +25,7 @@ from awesomeversion import (
|
||||||
AwesomeVersionException,
|
AwesomeVersionException,
|
||||||
AwesomeVersionStrategy,
|
AwesomeVersionStrategy,
|
||||||
)
|
)
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from . import generated
|
from . import generated
|
||||||
|
|
|
@ -22,7 +22,7 @@ except ImportError:
|
||||||
SafeLoader as FastestAvailableSafeLoader,
|
SafeLoader as FastestAvailableSafeLoader,
|
||||||
)
|
)
|
||||||
|
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
|
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ObsoleteImportMatch:
|
||||||
_OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
_OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||||
"functools": [
|
"functools": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by propcache.cached_property",
|
reason="replaced by propcache.api.cached_property",
|
||||||
constant=re.compile(r"^cached_property$"),
|
constant=re.compile(r"^cached_property$"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -33,7 +33,7 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||||
],
|
],
|
||||||
"homeassistant.backports.functools": [
|
"homeassistant.backports.functools": [
|
||||||
ObsoleteImportMatch(
|
ObsoleteImportMatch(
|
||||||
reason="replaced by propcache.cached_property",
|
reason="replaced by propcache.api.cached_property",
|
||||||
constant=re.compile(r"^cached_property$"),
|
constant=re.compile(r"^cached_property$"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -129,6 +129,12 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||||
constant=re.compile(r"^IMPERIAL_SYSTEM$"),
|
constant=re.compile(r"^IMPERIAL_SYSTEM$"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
"propcache": [
|
||||||
|
ObsoleteImportMatch(
|
||||||
|
reason="importing from propcache.api recommended",
|
||||||
|
constant=re.compile(r"^(under_)?cached_property$"),
|
||||||
|
),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
_IGNORE_ROOT_IMPORT = (
|
_IGNORE_ROOT_IMPORT = (
|
||||||
|
|
|
@ -951,4 +951,4 @@ split-on-trailing-comma = false
|
||||||
max-complexity = 25
|
max-complexity = 25
|
||||||
|
|
||||||
[tool.ruff.lint.pydocstyle]
|
[tool.ruff.lint.pydocstyle]
|
||||||
property-decorators = ["propcache.cached_property"]
|
property-decorators = ["propcache.api.cached_property"]
|
||||||
|
|
|
@ -11,7 +11,7 @@ from typing import Any
|
||||||
from unittest.mock import MagicMock, PropertyMock, patch
|
from unittest.mock import MagicMock, PropertyMock, patch
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
from propcache import cached_property
|
from propcache.api import cached_property
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
Loading…
Reference in New Issue