Fix omnilogic temperature sensor with metric setting (#41509)

pull/41523/head
djtimca 2020-10-08 17:48:54 -04:00 committed by GitHub
parent 916178925e
commit 8e3258cdfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class OmniLogicTemperatureSensor(OmnilogicSensor):
state = sensor_data state = sensor_data
if self._unit_type == "Metric": if self._unit_type == "Metric":
hayward_state = round((hayward_state - 32) * 5 / 9, 1) hayward_state = round((int(hayward_state) - 32) * 5 / 9, 1)
hayward_unit_of_measure = TEMP_CELSIUS hayward_unit_of_measure = TEMP_CELSIUS
if int(sensor_data) == -1: if int(sensor_data) == -1: