Require explicit feature type (#1006)

Explicit > implicit. Having this previously would have avoided using a
wrong type for water_alert in the first place.
This commit is contained in:
Teemu R
2024-06-25 18:30:36 +02:00
committed by GitHub
parent 5846bbdbbb
commit 0f5bafaa43
15 changed files with 45 additions and 10 deletions

View File

@@ -101,6 +101,7 @@ class Firmware(SmartModule):
container=self,
attribute_getter="current_firmware",
category=Feature.Category.Debug,
type=Feature.Type.Sensor,
)
)
self._add_feature(
@@ -111,6 +112,7 @@ class Firmware(SmartModule):
container=self,
attribute_getter="latest_firmware",
category=Feature.Category.Debug,
type=Feature.Type.Sensor,
)
)