Skip to content

Commit

Permalink
Fix #30. Report sensor unavailable if Hayward temperature sensor repo…
Browse files Browse the repository at this point in the history
…rts 255 degrees (invalid value caused by service mode or other interruption).
  • Loading branch information
djtimca committed Jul 8, 2022
1 parent 687fe4b commit afa4105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/omnilogic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def native_value(self):
hayward_state = round((int(hayward_state) - 32) * 5 / 9, 1)
hayward_unit_of_measure = TEMP_CELSIUS

if int(sensor_data) == -1:
if int(sensor_data) == -1 or int(sensor_data) == 255:
hayward_state = None
state = None

Expand Down

0 comments on commit afa4105

Please sign in to comment.