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 @@
"""Module for individual feature modules."""
from .ambientlight import AmbientLight
from .antitheft import Antitheft
from .cloud import Cloud

View File

@@ -1,4 +1,5 @@
"""Implementation of the ambient light (LAS) module found in some dimmers."""
from ...feature import Feature, FeatureType
from ..iotmodule import IotModule, merge

View File

@@ -1,4 +1,5 @@
"""Implementation of the antitheft module."""
from .rulemodule import RuleModule

View File

@@ -1,4 +1,5 @@
"""Cloud module implementation."""
try:
from pydantic.v1 import BaseModel
except ImportError:

View File

@@ -1,4 +1,5 @@
"""Implementation for the countdown timer."""
from .rulemodule import RuleModule

View File

@@ -1,4 +1,5 @@
"""Implementation of the emeter module."""
from datetime import datetime
from typing import Dict, List, Optional, Union

View File

@@ -1,4 +1,5 @@
"""Implementation of the motion detection (PIR) module found in some dimmers."""
from enum import Enum
from typing import Optional

View File

@@ -1,4 +1,5 @@
"""Base implementation for all rule-based modules."""
import logging
from enum import Enum
from typing import Dict, List, Optional

View File

@@ -1,4 +1,5 @@
"""Schedule module implementation."""
from .rulemodule import RuleModule

View File

@@ -1,4 +1,5 @@
"""Provides the current time and timezone information."""
from datetime import datetime
from ...exceptions import KasaException

View File

@@ -1,4 +1,5 @@
"""Implementation of the usage interface."""
from datetime import datetime
from typing import Dict