Fix omnilogic temperature sensor with metric setting (#41509)

This commit is contained in:
djtimca authored and Paulus Schoutsen committed 2020-10-09 13:42:51 +00:00
1 parent cca2594225
commit 7cdbbc248f
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ class OmniLogicTemperatureSensor(OmnilogicSensor):
state = sensor_data
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
if int(sensor_data) == -1: