mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Rename tedee library (#130203)
This commit is contained in:
parent
cd0349ee4d
commit
8384100e1b
@ -7,7 +7,7 @@ from typing import Any
|
|||||||
|
|
||||||
from aiohttp.hdrs import METH_POST
|
from aiohttp.hdrs import METH_POST
|
||||||
from aiohttp.web import Request, Response
|
from aiohttp.web import Request, Response
|
||||||
from pytedee_async.exception import TedeeDataUpdateException, TedeeWebhookException
|
from aiotedee.exception import TedeeDataUpdateException, TedeeWebhookException
|
||||||
|
|
||||||
from homeassistant.components.http import HomeAssistantView
|
from homeassistant.components.http import HomeAssistantView
|
||||||
from homeassistant.components.webhook import (
|
from homeassistant.components.webhook import (
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from pytedee_async import TedeeLock
|
from aiotedee import TedeeLock
|
||||||
from pytedee_async.lock import TedeeLockState
|
from aiotedee.lock import TedeeLockState
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
BinarySensorDeviceClass,
|
BinarySensorDeviceClass,
|
||||||
|
@ -4,7 +4,7 @@ from collections.abc import Mapping
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pytedee_async import (
|
from aiotedee import (
|
||||||
TedeeAuthException,
|
TedeeAuthException,
|
||||||
TedeeClient,
|
TedeeClient,
|
||||||
TedeeClientException,
|
TedeeClientException,
|
||||||
|
@ -8,7 +8,7 @@ import logging
|
|||||||
import time
|
import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pytedee_async import (
|
from aiotedee import (
|
||||||
TedeeClient,
|
TedeeClient,
|
||||||
TedeeClientException,
|
TedeeClientException,
|
||||||
TedeeDataUpdateException,
|
TedeeDataUpdateException,
|
||||||
@ -16,7 +16,7 @@ from pytedee_async import (
|
|||||||
TedeeLock,
|
TedeeLock,
|
||||||
TedeeWebhookException,
|
TedeeWebhookException,
|
||||||
)
|
)
|
||||||
from pytedee_async.bridge import TedeeBridge
|
from aiotedee.bridge import TedeeBridge
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_HOST
|
from homeassistant.const import CONF_HOST
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Bases for Tedee entities."""
|
"""Bases for Tedee entities."""
|
||||||
|
|
||||||
from pytedee_async.lock import TedeeLock
|
from aiotedee.lock import TedeeLock
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceInfo
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pytedee_async import TedeeClientException, TedeeLock, TedeeLockState
|
from aiotedee import TedeeClientException, TedeeLock, TedeeLockState
|
||||||
|
|
||||||
from homeassistant.components.lock import LockEntity, LockEntityFeature
|
from homeassistant.components.lock import LockEntity, LockEntityFeature
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"dependencies": ["http", "webhook"],
|
"dependencies": ["http", "webhook"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/tedee",
|
"documentation": "https://www.home-assistant.io/integrations/tedee",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["pytedee_async"],
|
"loggers": ["aiotedee"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["pytedee-async==0.2.20"]
|
"requirements": ["aiotedee==0.2.20"]
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from pytedee_async import TedeeLock
|
from aiotedee import TedeeLock
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
SensorDeviceClass,
|
SensorDeviceClass,
|
||||||
|
@ -392,6 +392,9 @@ aiosyncthing==0.5.1
|
|||||||
# homeassistant.components.tankerkoenig
|
# homeassistant.components.tankerkoenig
|
||||||
aiotankerkoenig==0.4.2
|
aiotankerkoenig==0.4.2
|
||||||
|
|
||||||
|
# homeassistant.components.tedee
|
||||||
|
aiotedee==0.2.20
|
||||||
|
|
||||||
# homeassistant.components.tractive
|
# homeassistant.components.tractive
|
||||||
aiotractive==0.6.0
|
aiotractive==0.6.0
|
||||||
|
|
||||||
@ -2295,9 +2298,6 @@ pyswitchbee==1.8.3
|
|||||||
# homeassistant.components.tautulli
|
# homeassistant.components.tautulli
|
||||||
pytautulli==23.1.1
|
pytautulli==23.1.1
|
||||||
|
|
||||||
# homeassistant.components.tedee
|
|
||||||
pytedee-async==0.2.20
|
|
||||||
|
|
||||||
# homeassistant.components.thinkingcleaner
|
# homeassistant.components.thinkingcleaner
|
||||||
pythinkingcleaner==0.0.3
|
pythinkingcleaner==0.0.3
|
||||||
|
|
||||||
|
@ -374,6 +374,9 @@ aiosyncthing==0.5.1
|
|||||||
# homeassistant.components.tankerkoenig
|
# homeassistant.components.tankerkoenig
|
||||||
aiotankerkoenig==0.4.2
|
aiotankerkoenig==0.4.2
|
||||||
|
|
||||||
|
# homeassistant.components.tedee
|
||||||
|
aiotedee==0.2.20
|
||||||
|
|
||||||
# homeassistant.components.tractive
|
# homeassistant.components.tractive
|
||||||
aiotractive==0.6.0
|
aiotractive==0.6.0
|
||||||
|
|
||||||
@ -1852,9 +1855,6 @@ pyswitchbee==1.8.3
|
|||||||
# homeassistant.components.tautulli
|
# homeassistant.components.tautulli
|
||||||
pytautulli==23.1.1
|
pytautulli==23.1.1
|
||||||
|
|
||||||
# homeassistant.components.tedee
|
|
||||||
pytedee-async==0.2.20
|
|
||||||
|
|
||||||
# homeassistant.components.motionmount
|
# homeassistant.components.motionmount
|
||||||
python-MotionMount==2.2.0
|
python-MotionMount==2.2.0
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ from collections.abc import Generator
|
|||||||
import json
|
import json
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
from pytedee_async.bridge import TedeeBridge
|
from aiotedee.bridge import TedeeBridge
|
||||||
from pytedee_async.lock import TedeeLock
|
from aiotedee.lock import TedeeLock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.tedee.const import CONF_LOCAL_ACCESS_TOKEN, DOMAIN
|
from homeassistant.components.tedee.const import CONF_LOCAL_ACCESS_TOKEN, DOMAIN
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
from aiotedee import TedeeLock
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
from pytedee_async import TedeeLock
|
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from pytedee_async import (
|
from aiotedee import (
|
||||||
TedeeClientException,
|
TedeeClientException,
|
||||||
TedeeDataUpdateException,
|
TedeeDataUpdateException,
|
||||||
TedeeLocalAuthException,
|
TedeeLocalAuthException,
|
||||||
)
|
)
|
||||||
from pytedee_async.bridge import TedeeBridge
|
from aiotedee.bridge import TedeeBridge
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.tedee.const import CONF_LOCAL_ACCESS_TOKEN, DOMAIN
|
from homeassistant.components.tedee.const import CONF_LOCAL_ACCESS_TOKEN, DOMAIN
|
||||||
|
@ -5,7 +5,7 @@ from typing import Any
|
|||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from pytedee_async.exception import (
|
from aiotedee.exception import (
|
||||||
TedeeAuthException,
|
TedeeAuthException,
|
||||||
TedeeClientException,
|
TedeeClientException,
|
||||||
TedeeWebhookException,
|
TedeeWebhookException,
|
||||||
|
@ -4,13 +4,13 @@ from datetime import timedelta
|
|||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from aiotedee import TedeeLock, TedeeLockState
|
||||||
from pytedee_async import TedeeLock, TedeeLockState
|
from aiotedee.exception import (
|
||||||
from pytedee_async.exception import (
|
|
||||||
TedeeClientException,
|
TedeeClientException,
|
||||||
TedeeDataUpdateException,
|
TedeeDataUpdateException,
|
||||||
TedeeLocalAuthException,
|
TedeeLocalAuthException,
|
||||||
)
|
)
|
||||||
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy.assertion import SnapshotAssertion
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
from aiotedee import TedeeLock
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
from pytedee_async import TedeeLock
|
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user