mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-20 03:30:12 +00:00
Improve categorization of features (#904)
This updates the categorization of features and makes the id mandatory for features
This commit is contained in:
@@ -31,6 +31,7 @@ class LightTransitionModule(SmartModule):
|
||||
Feature(
|
||||
device=self._device,
|
||||
container=self,
|
||||
id="smooth_transitions",
|
||||
name="Smooth transitions",
|
||||
icon=icon,
|
||||
attribute_getter="enabled_v1",
|
||||
@@ -46,7 +47,8 @@ class LightTransitionModule(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
self._device,
|
||||
"Smooth transition on",
|
||||
id="smooth_transition_on",
|
||||
name="Smooth transition on",
|
||||
container=self,
|
||||
attribute_getter="turn_on_transition",
|
||||
attribute_setter="set_turn_on_transition",
|
||||
@@ -58,7 +60,8 @@ class LightTransitionModule(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
self._device,
|
||||
"Smooth transition off",
|
||||
id="smooth_transition_off",
|
||||
name="Smooth transition off",
|
||||
container=self,
|
||||
attribute_getter="turn_off_transition",
|
||||
attribute_setter="set_turn_off_transition",
|
||||
|
||||
Reference in New Issue
Block a user