mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
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:
@@ -1,4 +1,5 @@
|
||||
"""Package for supporting legacy kasa devices."""
|
||||
|
||||
from .iotbulb import IotBulb
|
||||
from .iotdevice import IotDevice
|
||||
from .iotdimmer import IotDimmer
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for bulbs (LB*, KL*, KB*)."""
|
||||
|
||||
import logging
|
||||
import re
|
||||
from enum import Enum
|
||||
@@ -233,7 +234,6 @@ class IotBulb(IotDevice, Bulb):
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@property # type: ignore
|
||||
@requires_update
|
||||
def is_color(self) -> bool:
|
||||
|
@@ -11,6 +11,7 @@ Stroetmann which is licensed under the Apache License, Version 2.0.
|
||||
You may obtain a copy of the license at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
"""
|
||||
|
||||
import collections.abc
|
||||
import functools
|
||||
import inspect
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for dimmers (currently only HS220)."""
|
||||
|
||||
from enum import Enum
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for light strips (KL430)."""
|
||||
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from ..device_type import DeviceType
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Base class for IOT module implementations."""
|
||||
|
||||
import collections
|
||||
import logging
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for smart plugs (HS100, HS110, ..)."""
|
||||
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for multi-socket devices (HS300, HS107, KP303, ..)."""
|
||||
|
||||
import logging
|
||||
from collections import defaultdict
|
||||
from datetime import datetime, timedelta
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Module for individual feature modules."""
|
||||
|
||||
from .ambientlight import AmbientLight
|
||||
from .antitheft import Antitheft
|
||||
from .cloud import Cloud
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Implementation of the antitheft module."""
|
||||
|
||||
from .rulemodule import RuleModule
|
||||
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Cloud module implementation."""
|
||||
|
||||
try:
|
||||
from pydantic.v1 import BaseModel
|
||||
except ImportError:
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Implementation for the countdown timer."""
|
||||
|
||||
from .rulemodule import RuleModule
|
||||
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Implementation of the emeter module."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Dict, List, Optional, Union
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Implementation of the motion detection (PIR) module found in some dimmers."""
|
||||
|
||||
from enum import Enum
|
||||
from typing import Optional
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Base implementation for all rule-based modules."""
|
||||
|
||||
import logging
|
||||
from enum import Enum
|
||||
from typing import Dict, List, Optional
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Schedule module implementation."""
|
||||
|
||||
from .rulemodule import RuleModule
|
||||
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Provides the current time and timezone information."""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from ...exceptions import KasaException
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Implementation of the usage interface."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Dict
|
||||
|
||||
|
Reference in New Issue
Block a user