Update poetry locks and pre-commit hooks (#837)

Also updates CI pypy versions to be 3.9 and 3.10 which are the currently
[supported
versions](https://www.pypy.org/posts/2024/01/pypy-v7315-release.html).
Otherwise latest cryptography doesn't ship with pypy3.8 wheels and is
unable to build on windows.

Also updates the `codecov-action` to v4 which fixed some intermittent
uploading errors.
This commit is contained in:
Steven B
2024-04-16 19:21:20 +01:00
committed by GitHub
parent 87fa39dd80
commit da441bc697
72 changed files with 904 additions and 846 deletions

View File

@@ -1,4 +1,5 @@
"""Package for supporting tapo-branded and newer kasa devices."""
from .smartbulb import SmartBulb
from .smartchilddevice import SmartChildDevice
from .smartdevice import SmartDevice

View File

@@ -1,4 +1,5 @@
"""Modules for SMART devices."""
from .alarmmodule import AlarmModule
from .autooffmodule import AutoOffModule
from .battery import BatterySensor

View File

@@ -1,4 +1,5 @@
"""Implementation of alarm module."""
from typing import TYPE_CHECKING, Dict, List, Optional
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Implementation of auto off module."""
from datetime import datetime, timedelta
from typing import TYPE_CHECKING, Dict, Optional

View File

@@ -1,4 +1,5 @@
"""Implementation of battery module."""
from typing import TYPE_CHECKING
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Implementation of brightness module."""
from typing import TYPE_CHECKING, Dict
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Implementation of cloud module."""
from typing import TYPE_CHECKING
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Implementation of color temp module."""
from typing import TYPE_CHECKING, Dict
from ...bulb import ColorTempRange

View File

@@ -1,4 +1,5 @@
"""Implementation of device module."""
from typing import Dict
from ..smartmodule import SmartModule

View File

@@ -1,4 +1,5 @@
"""Implementation of energy monitoring module."""
from typing import TYPE_CHECKING, Dict, Optional
from ...emeterstatus import EmeterStatus

View File

@@ -1,4 +1,5 @@
"""Implementation of firmware module."""
from typing import TYPE_CHECKING, Dict, Optional
from ...exceptions import SmartErrorCode

View File

@@ -1,4 +1,5 @@
"""Implementation of humidity module."""
from typing import TYPE_CHECKING
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Module for led controls."""
from typing import TYPE_CHECKING, Dict
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Module for smooth light transitions."""
from typing import TYPE_CHECKING
from ...exceptions import KasaException

View File

@@ -1,4 +1,5 @@
"""Implementation of report module."""
from typing import TYPE_CHECKING
from ...feature import Feature

View File

@@ -1,4 +1,5 @@
"""Implementation of temperature module."""
from typing import TYPE_CHECKING, Literal
from ...feature import Feature, FeatureType

View File

@@ -1,4 +1,5 @@
"""Implementation of time module."""
from datetime import datetime, timedelta, timezone
from time import mktime
from typing import TYPE_CHECKING, cast

View File

@@ -1,4 +1,5 @@
"""Module for tapo-branded smart bulbs (L5**)."""
from typing import Dict, List, Optional
from ..bulb import Bulb

View File

@@ -1,4 +1,5 @@
"""Child device implementation."""
import logging
from typing import Optional

View File

@@ -1,4 +1,5 @@
"""Module for a SMART device."""
import base64
import logging
from datetime import datetime, timedelta

View File

@@ -1,4 +1,5 @@
"""Base implementation for SMART modules."""
import logging
from typing import TYPE_CHECKING, Dict, Type