Skip to content

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
Apparently there are more then the 16 known error code's.Return the decimal error when this happens instead of None
  • Loading branch information
aceindy authored Apr 15, 2023
1 parent 74337f4 commit d0149ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/duepi_evo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ async def get_data(self, support_setpoint) -> None:
data_from_server = sock.recv(10).decode()
if len(data_from_server) != 0:
error_code_decimal = int(data_from_server[1:5], 16)
error_code = (self._error_code_map[error_code_decimal] if error_code_decimal < 15 else None)
error_code = (self._error_code_map[error_code_decimal] if error_code_decimal < 15 else str(error_code_decimal))

# Get Setpoint temperature
sock.send(GET_SETPOINT.encode())
Expand Down

0 comments on commit d0149ac

Please sign in to comment.