From aa6744d2accfbb42462b1f18a510faacadd1ad26 Mon Sep 17 00:00:00 2001 From: Jan Benicek Date: Thu, 16 Jan 2025 14:19:27 +0100 Subject: [PATCH] scripts/fan_controller.py - update data model for easirest using more types of input temperature sensors #2 --- scripts/fan_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fan_controller.py b/scripts/fan_controller.py index 563ffbd..680f064 100644 --- a/scripts/fan_controller.py +++ b/scripts/fan_controller.py @@ -26,7 +26,7 @@ fans = [ ] -def get_temp(channel) -> float: +def get_temp(channel: dict) -> float: match channel["type"]: case "RTD": return read_temp(stack=channel["stack"], channel=channel["channel"])