mirror of
https://github.com/home-assistant/core.git
synced 2025-05-23 07:17:07 +00:00
Fix omnilogic temperature sensor with metric setting (#41509)
This commit is contained in:
parent
916178925e
commit
8e3258cdfb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user