From 8e3258cdfb51f63c8f90b17c2840a07f679c6fef Mon Sep 17 00:00:00 2001 From: djtimca <60706061+djtimca@users.noreply.github.com> Date: Thu, 8 Oct 2020 17:48:54 -0400 Subject: [PATCH] Fix omnilogic temperature sensor with metric setting (#41509) --- homeassistant/components/omnilogic/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/omnilogic/sensor.py b/homeassistant/components/omnilogic/sensor.py index f4bb0f45d5e..e3324cfabc3 100644 --- a/homeassistant/components/omnilogic/sensor.py +++ b/homeassistant/components/omnilogic/sensor.py @@ -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: