Skip to content

Commit 9a5ec00

Browse files
committed
replaced None by 0 to ease handling
1 parent ea25cdb commit 9a5ec00

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

inelsmqtt/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ def __find_ha_value(self) -> None:
16021602
DEVICE_TYPE_166_DATA, CURRENT_TEMP, ""
16031603
), 16) / 100
16041604
if temp_current == 0x7FFFFFFB:
1605-
temp_current = None
1605+
temp_current = 0
16061606
else:
16071607
temp_current /= 100
16081608
temp_critical_max = int(self.__trim_inels_status_values( #check if 0x7F FF FF FB -> make it 50
@@ -1612,7 +1612,7 @@ def __find_ha_value(self) -> None:
16121612
DEVICE_TYPE_166_DATA, REQUIRED_HEAT_TEMP, ""
16131613
), 16)
16141614
if temp_required_heat == 0x7FFFFFFB:
1615-
temp_required_heat = None
1615+
temp_required_heat = 0
16161616
else:
16171617
temp_required_heat /= 100
16181618
temp_critical_min = int(self.__trim_inels_status_values( #check if 0x7F FF FF FB -> make it -50
@@ -1622,7 +1622,7 @@ def __find_ha_value(self) -> None:
16221622
DEVICE_TYPE_166_DATA, REQUIRED_COOL_TEMP, ""
16231623
), 16)
16241624
if temp_required_cool == 0x7FFFFFFB:
1625-
temp_required_cool = None
1625+
temp_required_cool = 0
16261626
else:
16271627
temp_required_cool /= 100
16281628
temp_correction = int(self.__trim_inels_status_values(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="inels-mqtt-new",
6-
version="0.2.22b4",
6+
version="0.2.22b5",
77
url="https://github.com/zed4805/inels-mqtt-new",
88
license="MIT",
99
author="Elko EP s.r.o.",

0 commit comments

Comments
 (0)