Skip to content

Commit

Permalink
fix: revert temperature conversion fix
Browse files Browse the repository at this point in the history
This reverts commit 1c0948a.
  • Loading branch information
TheRealWaldo committed Nov 3, 2023
1 parent 6114ffd commit f89cc77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/optimal_humidity/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

from homeassistant import util

from homeassistant.util.temperature import fahrenheit_to_celsius

from homeassistant.util.unit_system import METRIC_SYSTEM

from homeassistant.components.sensor import (
Expand Down Expand Up @@ -318,7 +316,7 @@ def _update_temp_sensor(state):
return None

if unit == TEMP_FAHRENHEIT:
return fahrenheit_to_celsius(temp)
return util.temperature.fahrenheit_to_celsius(temp)
if unit == TEMP_CELSIUS:
return temp
_LOGGER.warning(
Expand Down

0 comments on commit f89cc77

Please sign in to comment.