Skip to content

Commit

Permalink
fix null value
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergler committed Mar 26, 2023
1 parent 5b51ae4 commit eb71f1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/intesisbox/intesisbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
FUNCTION_ERRSTATUS = 'ERRSTATUS'
FUNCTION_ERRCODE = 'ERRCODE'

NULL_VALUE = '32768'
NULL_VALUE = '-32768'


class IntesisBox(asyncio.Protocol):
Expand Down Expand Up @@ -329,9 +329,6 @@ def ambient_temperature(self) -> float:
temperature = self._device.get(FUNCTION_AMBTEMP)
if temperature:
temperature = int(temperature) / 10
# When unsupported, -32768 is reported
if temperature == -3276.8:
temperature = None
return temperature

@property
Expand Down

0 comments on commit eb71f1c

Please sign in to comment.