scripts/fan_controller.py - update data model for easirest using more types of input temperature sensors #2
This commit is contained in:
parent
ce70ed7330
commit
aa6744d2ac
1 changed files with 1 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue