mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Add temperature_unit feature to t315 (#788)
This commit is contained in:
parent
c61f2e931c
commit
c3aa34425d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user