mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +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:
@@ -36,7 +36,8 @@ class TemperatureControl(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"Target temperature",
|
||||
id="target_temperature",
|
||||
name="Target temperature",
|
||||
container=self,
|
||||
attribute_getter="target_temperature",
|
||||
attribute_setter="set_target_temperature",
|
||||
@@ -50,7 +51,8 @@ class TemperatureControl(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"Temperature offset",
|
||||
id="temperature_offset",
|
||||
name="Temperature offset",
|
||||
container=self,
|
||||
attribute_getter="temperature_offset",
|
||||
attribute_setter="set_temperature_offset",
|
||||
@@ -64,7 +66,8 @@ class TemperatureControl(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"State",
|
||||
id="state",
|
||||
name="State",
|
||||
container=self,
|
||||
attribute_getter="state",
|
||||
attribute_setter="set_state",
|
||||
@@ -76,7 +79,8 @@ class TemperatureControl(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"Mode",
|
||||
id="mode",
|
||||
name="Mode",
|
||||
container=self,
|
||||
attribute_getter="mode",
|
||||
category=Feature.Category.Primary,
|
||||
|
Reference in New Issue
Block a user