From 47b1cb0d5d7a31a25845fc07a51f07d34cb4e15c Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Sun, 18 Feb 2024 22:20:53 +0100 Subject: [PATCH] Add temperature_unit feature to t315 --- 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 659fb7dbe..c33e565b9 100644 --- a/kasa/smart/modules/temperature.py +++ b/kasa/smart/modules/temperature.py @@ -35,6 +35,15 @@ def __init__(self, device: "SmartDevice", module: str): 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