From d0149acd37d6f4d23f28a492270047a31e52e0b8 Mon Sep 17 00:00:00 2001 From: aceindy Date: Sat, 15 Apr 2023 14:01:49 +0200 Subject: [PATCH] Update climate.py Apparently there are more then the 16 known error code's.Return the decimal error when this happens instead of None --- custom_components/duepi_evo/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/duepi_evo/climate.py b/custom_components/duepi_evo/climate.py index f761306..21c3292 100644 --- a/custom_components/duepi_evo/climate.py +++ b/custom_components/duepi_evo/climate.py @@ -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())