Use new 17track api library (#121910)

This commit is contained in:
Shai Ungar 2024-07-19 18:09:50 +03:00 committed by GitHub
parent 8bca9a3449
commit 978ee918cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 19 additions and 19 deletions

View File

@ -2,9 +2,9 @@
from typing import Final
from py17track import Client as SeventeenTrackClient
from py17track.errors import SeventeenTrackError
from py17track.package import PACKAGE_STATUS_MAP
from pyseventeentrack import Client as SeventeenTrackClient
from pyseventeentrack.errors import SeventeenTrackError
from pyseventeentrack.package import PACKAGE_STATUS_MAP
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry, ConfigEntryState

View File

@ -5,8 +5,8 @@ from __future__ import annotations
import logging
from typing import Any
from py17track import Client as SeventeenTrackClient
from py17track.errors import SeventeenTrackError
from pyseventeentrack import Client as SeventeenTrackClient
from pyseventeentrack.errors import SeventeenTrackError
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry, ConfigFlow, ConfigFlowResult

View File

@ -3,9 +3,9 @@
from dataclasses import dataclass
from typing import Any
from py17track import Client as SeventeenTrackClient
from py17track.errors import SeventeenTrackError
from py17track.package import Package
from pyseventeentrack import Client as SeventeenTrackClient
from pyseventeentrack.errors import SeventeenTrackError
from pyseventeentrack.package import Package
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/seventeentrack",
"integration_type": "service",
"iot_class": "cloud_polling",
"loggers": ["py17track"],
"requirements": ["py17track==2021.12.2"]
"loggers": ["pyseventeentrack"],
"requirements": ["pyseventeentrack==1.0.0"]
}

View File

@ -1661,9 +1661,6 @@ py-synologydsm-api==2.4.4
# homeassistant.components.zabbix
py-zabbix==1.1.7
# homeassistant.components.seventeentrack
py17track==2021.12.2
# homeassistant.components.atome
pyAtome==0.1.1
@ -2162,6 +2159,9 @@ pyserial==3.5
# homeassistant.components.sesame
pysesame2==1.0.1
# homeassistant.components.seventeentrack
pyseventeentrack==1.0.0
# homeassistant.components.sia
pysiaalarm==3.1.1

View File

@ -1341,9 +1341,6 @@ py-sucks==0.9.10
# homeassistant.components.synology_dsm
py-synologydsm-api==2.4.4
# homeassistant.components.seventeentrack
py17track==2021.12.2
# homeassistant.components.hdmi_cec
pyCEC==0.5.2
@ -1710,6 +1707,9 @@ pysensibo==1.0.36
# homeassistant.components.zwave_js
pyserial==3.5
# homeassistant.components.seventeentrack
pyseventeentrack==1.0.0
# homeassistant.components.sia
pysiaalarm==3.1.1

View File

@ -3,7 +3,7 @@
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
from py17track.package import Package
from pyseventeentrack.package import Package
import pytest
from homeassistant.components.seventeentrack.const import (

View File

@ -2,7 +2,7 @@
from unittest.mock import AsyncMock
from py17track.errors import SeventeenTrackError
from pyseventeentrack.errors import SeventeenTrackError
import pytest
from homeassistant import config_entries

View File

@ -5,7 +5,7 @@ from __future__ import annotations
from unittest.mock import AsyncMock, patch
from freezegun.api import FrozenDateTimeFactory
from py17track.errors import SeventeenTrackError
from pyseventeentrack.errors import SeventeenTrackError
from homeassistant.core import HomeAssistant
from homeassistant.helpers import issue_registry as ir