diff --git a/src/nwp500/encoding.py b/src/nwp500/encoding.py index c7f7516..d8ac2f1 100644 --- a/src/nwp500/encoding.py +++ b/src/nwp500/encoding.py @@ -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 @@ -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)