mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-09-19 12:33:51 +00:00
Some checks are pending
CI / Perform Lint Checks (3.14) (push) Waiting to run
CI / Python 3.11 on macos-latest (push) Blocked by required conditions
CI / Python 3.12 on macos-latest (push) Blocked by required conditions
CI / Python 3.13 on macos-latest (push) Blocked by required conditions
CI / Python 3.14 on macos-latest (push) Blocked by required conditions
CI / Python 3.11 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.12 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.13 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.14 on ubuntu-latest (push) Blocked by required conditions
CI / Python 3.11 on windows-latest (push) Blocked by required conditions
CI / Python 3.12 on windows-latest (push) Blocked by required conditions
CI / Python 3.13 on windows-latest (push) Blocked by required conditions
CI / Python 3.14 on windows-latest (push) Blocked by required conditions
CodeQL Checks / Analyze (python) (push) Waiting to run
Add a `LastAlertDetection` module for SMARTCAM devices exposing `getLastAlarmInfo` as two `Info` sensor features: - `last_alert_timestamp` — tz-aware `datetime` of the last alert, `None` when the device has never detected anything (`last_alarm_time` is `""` or `"0"` on such devices, and an unexpected value is also mapped to `None` - `last_alert_type` — `LastAlertType` enum (`Motion`; `Unknown` fallback with a one-time warning per unknown raw value), `None` when unset.
52 lines
1.3 KiB
Python
52 lines
1.3 KiB
Python
"""Modules for SMARTCAM devices."""
|
|
|
|
from .alarm import Alarm
|
|
from .babycrydetection import BabyCryDetection
|
|
from .barkdetection import BarkDetection
|
|
from .battery import Battery
|
|
from .camera import Camera
|
|
from .childdevice import ChildDevice
|
|
from .childsetup import ChildSetup
|
|
from .device import DeviceModule
|
|
from .glassdetection import GlassDetection
|
|
from .homekit import HomeKit
|
|
from .lastalertdetection import LastAlertDetection
|
|
from .led import Led
|
|
from .lensmask import LensMask
|
|
from .linecrossingdetection import LineCrossingDetection
|
|
from .matter import Matter
|
|
from .meowdetection import MeowDetection
|
|
from .motiondetection import MotionDetection
|
|
from .pantilt import PanTilt
|
|
from .persondetection import PersonDetection
|
|
from .petdetection import PetDetection
|
|
from .tamperdetection import TamperDetection
|
|
from .time import Time
|
|
from .vehicledetection import VehicleDetection
|
|
|
|
__all__ = [
|
|
"Alarm",
|
|
"BabyCryDetection",
|
|
"BarkDetection",
|
|
"Battery",
|
|
"Camera",
|
|
"ChildDevice",
|
|
"ChildSetup",
|
|
"DeviceModule",
|
|
"GlassDetection",
|
|
"LastAlertDetection",
|
|
"Led",
|
|
"LineCrossingDetection",
|
|
"MeowDetection",
|
|
"PanTilt",
|
|
"PersonDetection",
|
|
"PetDetection",
|
|
"Time",
|
|
"HomeKit",
|
|
"Matter",
|
|
"MotionDetection",
|
|
"LensMask",
|
|
"TamperDetection",
|
|
"VehicleDetection",
|
|
]
|