mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 11:43:34 +00:00
efb4a0f31f
Adds auto-off implementation. The feature stays enabled after the timer runs out, and it will start the countdown if the device is turned on again without explicitly disabling it. New features: * Switch to select if enabled: `Auto off enabled (auto_off_enabled): False` * Setting to change the delay: `Auto off minutes (auto_off_minutes): 222` * If timer is active, datetime object when the device gets turned off: `Auto off at (auto_off_at): None`
21 lines
547 B
Python
21 lines
547 B
Python
"""Modules for SMART devices."""
|
|
from .autooffmodule import AutoOffModule
|
|
from .childdevicemodule import ChildDeviceModule
|
|
from .cloudmodule import CloudModule
|
|
from .devicemodule import DeviceModule
|
|
from .energymodule import EnergyModule
|
|
from .ledmodule import LedModule
|
|
from .lighttransitionmodule import LightTransitionModule
|
|
from .timemodule import TimeModule
|
|
|
|
__all__ = [
|
|
"TimeModule",
|
|
"EnergyModule",
|
|
"DeviceModule",
|
|
"ChildDeviceModule",
|
|
"AutoOffModule",
|
|
"LedModule",
|
|
"CloudModule",
|
|
"LightTransitionModule",
|
|
]
|