diff --git a/custom_components/optimal_humidity/sensor.py b/custom_components/optimal_humidity/sensor.py index 5fb2411..eba43d0 100644 --- a/custom_components/optimal_humidity/sensor.py +++ b/custom_components/optimal_humidity/sensor.py @@ -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 ( @@ -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(