scripts/fan_controller.py - update data model for easirest using more types of input temperature sensors #2

This commit is contained in:
Jan Beníček 2025-01-16 14:19:27 +01:00
parent ce70ed7330
commit aa6744d2ac

View file

@ -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"])