From cee8b0fadcee45a5ebe842377f3ace15e191c31e Mon Sep 17 00:00:00 2001 From: Teemu R Date: Fri, 21 Jun 2024 20:25:55 +0200 Subject: [PATCH] Improve autooff name and unit (#997) --- kasa/smart/modules/autooff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kasa/smart/modules/autooff.py b/kasa/smart/modules/autooff.py index afb822c5..47f69d06 100644 --- a/kasa/smart/modules/autooff.py +++ b/kasa/smart/modules/autooff.py @@ -40,11 +40,12 @@ class AutoOff(SmartModule): Feature( self._device, id="auto_off_minutes", - name="Auto off minutes", + name="Auto off in", container=self, attribute_getter="delay", attribute_setter="set_delay", type=Feature.Type.Number, + unit="min", # ha-friendly unit, see UnitOfTime.MINUTES ) ) self._add_feature(