From c3aa34425d5d068659381b10ec14cb25f3e43d78 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 24 Feb 2024 00:05:06 +0100 Subject: [PATCH] Add temperature_unit feature to t315 (#788) --- kasa/smart/modules/temperature.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kasa/smart/modules/temperature.py b/kasa/smart/modules/temperature.py index 659fb7db..c33e565b 100644 --- a/kasa/smart/modules/temperature.py +++ b/kasa/smart/modules/temperature.py @@ -35,6 +35,15 @@ class TemperatureSensor(SmartModule): 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 @property