mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add temperature_unit feature to t315 (#788)
This commit is contained in:
@@ -35,6 +35,15 @@ class TemperatureSensor(SmartModule):
|
|||||||
icon="mdi:alert",
|
icon="mdi:alert",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
self._add_feature(
|
||||||
|
Feature(
|
||||||
|
device,
|
||||||
|
"Temperature unit",
|
||||||
|
container=self,
|
||||||
|
attribute_getter="temperature_unit",
|
||||||
|
attribute_setter="set_temperature_unit",
|
||||||
|
)
|
||||||
|
)
|
||||||
# TODO: use temperature_unit for feature creation
|
# TODO: use temperature_unit for feature creation
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user