Skip to content

Commit

Permalink
Fix typing issues (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jun 8, 2024
1 parent 1001edb commit 6071c5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions incomfortclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
BITMASK_TAP = 0x04 # tap (DHW) state: function on / off

# key label: displ_code
DISPLAY_CODES: list[int, str] = {
DISPLAY_CODES: dict[int, str] = {
0: "opentherm",
15: "boiler ext.",
24: "frost",
Expand All @@ -46,7 +46,7 @@
240: "boiler int.",
255: "buffer",
}
FAULT_CODES: list[int, str] = {
FAULT_CODES: dict[int, str] = {
0: "Sensor fault after self check",
1: "Temperature too high",
2: "S1 and S2 interchanged",
Expand All @@ -69,7 +69,7 @@
30: "Gas valve relay faulty",
} # "0.0": "Low system pressure"

HEATER_ATTRS: tuple[str] = (
HEATER_ATTRS: tuple[str, ...] = (
"display_code",
"display_text",
"fault_code",
Expand All @@ -82,9 +82,9 @@
"pressure",
"serial_no",
)
HEATER_ATTRS_RAW: tuple[str] = ("nodenr", "rf_message_rssi", "rfstatus_cntr")
HEATER_ATTRS_RAW: tuple[str, ...] = ("nodenr", "rf_message_rssi", "rfstatus_cntr")

ROOM_ATTRS: tuple[str] = ("room_temp", "setpoint", "override")
ROOM_ATTRS: tuple[str, ...] = ("room_temp", "setpoint", "override")

OVERRIDE_MAX_TEMP = 30.0
OVERRIDE_MIN_TEMP = 5.0
Expand Down

0 comments on commit 6071c5d

Please sign in to comment.