Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/nwp500/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def decode_reservation_hex(hex_string: str) -> list[dict[str, int]]:
- Byte 2: hour (0-23)
- Byte 3: minute (0-59)
- Byte 4: mode (operation mode ID)
- Byte 5: param (temperature offset by 20°F)
- Byte 5: param (target temperature, half-degrees Celsius; °C = param/2)

Args:
hex_string: Hexadecimal string representing reservation data
Expand All @@ -355,7 +355,7 @@ def decode_reservation_hex(hex_string: str) -> list[dict[str, int]]:

Examples:
>>> decode_reservation_hex("013e061e0478")
[{'enable': 1, 'week': 62, 'hour': 6, 'minute': 30, 'mode': 4, 'param':
[{'enable': 1, 'week': 62, 'hour': 6, 'min': 30, 'mode': 4, 'param':
120}]
"""
data = bytes.fromhex(hex_string)
Expand Down
Loading