mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +00:00
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:
@@ -29,6 +29,7 @@ class TemperatureSensor(SmartModule):
|
||||
icon="mdi:thermometer",
|
||||
category=Feature.Category.Primary,
|
||||
unit_getter="temperature_unit",
|
||||
type=Feature.Type.Sensor,
|
||||
)
|
||||
)
|
||||
if "current_temp_exception" in device.sys_info:
|
||||
|
Reference in New Issue
Block a user