Add temperature_unit feature to t315 (#788)

This commit is contained in:
Teemu R 2024-02-24 00:05:06 +01:00 committed by GitHub
parent c61f2e931c
commit c3aa34425d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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