From 5462fa43fa92baf046c3635f2ba63aa57d892701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 18 Jun 2024 04:25:18 +0200 Subject: [PATCH] frobar: Fix temperature for sensor without high values --- hm/desktop/frobar/frobar/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hm/desktop/frobar/frobar/providers.py b/hm/desktop/frobar/frobar/providers.py index 20f496d..9e05f4a 100644 --- a/hm/desktop/frobar/frobar/providers.py +++ b/hm/desktop/frobar/frobar/providers.py @@ -188,7 +188,7 @@ class TemperatureProvider(AlertingSection, PeriodicUpdater): self.dangerThresold = temp.critical or 100.0 self.updateLevel(temp.current) - self.icon = Section.ramp(temp.current / temp.high, self.RAMP) + self.icon = Section.ramp(temp.current / self.warningThresold, self.RAMP) if self.state >= 1: return "{:.0f}°C".format(temp.current) return ""