python-kasa/kasa/interfaces
Steven B. fa0f7157c6
Deprecate legacy light module is_capability checks (#1297)
Deprecate the `is_color`, `is_dimmable`, `is_variable_color_temp`, `valid_temperate_range`,
and `has_effects` attributes from the `Light` module, as consumers should use
`has_feature("hsv")`, `has_feature("brightness")`, `has_feature("color_temp")`,
`get_feature("color_temp").range`, and `Module.LightEffect in dev.modules` respectively.

Calling the deprecated attributes will emit a `DeprecationWarning`
and type checkers will fail them.
2025-01-22 10:26:37 +00:00
..
__init__.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
energy.py Exclude __getattr__ for deprecated attributes from type checkers (#1294) 2024-11-21 18:40:13 +00:00
fan.py Annotate fan_speed_level of Fan interface (#1298) 2024-11-22 21:21:29 +01:00
led.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
light.py Deprecate legacy light module is_capability checks (#1297) 2025-01-22 10:26:37 +00:00
lighteffect.py Update cli, light modules, and docs to use FeatureAttributes (#1364) 2024-12-11 15:53:35 +00:00
lightpreset.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
thermostat.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
time.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00