mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18: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:
@@ -52,7 +52,8 @@ class Firmware(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"Auto update enabled",
|
||||
id="auto_update_enabled",
|
||||
name="Auto update enabled",
|
||||
container=self,
|
||||
attribute_getter="auto_update_enabled",
|
||||
attribute_setter="set_auto_update_enabled",
|
||||
@@ -62,10 +63,12 @@ class Firmware(SmartModule):
|
||||
self._add_feature(
|
||||
Feature(
|
||||
device,
|
||||
"Update available",
|
||||
id="update_available",
|
||||
name="Update available",
|
||||
container=self,
|
||||
attribute_getter="update_available",
|
||||
type=Feature.Type.BinarySensor,
|
||||
category=Feature.Category.Info,
|
||||
)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user