From 972baa2ce4ac553ee01ff7704c1aa87bb91c6775 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Thu, 4 Mar 2021 16:15:27 -0500 Subject: [PATCH] Don't convert Climacell forecast temperatures to celsius because platform does it automatically (#47406) --- homeassistant/components/climacell/weather.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/homeassistant/components/climacell/weather.py b/homeassistant/components/climacell/weather.py index c77bbfbd50a..1f0fe76cff6 100644 --- a/homeassistant/components/climacell/weather.py +++ b/homeassistant/components/climacell/weather.py @@ -22,7 +22,6 @@ from homeassistant.const import ( LENGTH_MILES, PRESSURE_HPA, PRESSURE_INHG, - TEMP_CELSIUS, TEMP_FAHRENHEIT, ) from homeassistant.helpers.entity import Entity @@ -31,7 +30,6 @@ from homeassistant.helpers.typing import HomeAssistantType from homeassistant.util import dt as dt_util from homeassistant.util.distance import convert as distance_convert from homeassistant.util.pressure import convert as pressure_convert -from homeassistant.util.temperature import convert as temp_convert from . import ClimaCellDataUpdateCoordinator, ClimaCellEntity from .const import ( @@ -102,10 +100,6 @@ def _forecast_dict( precipitation = ( distance_convert(precipitation / 12, LENGTH_FEET, LENGTH_METERS) * 1000 ) - if temp: - temp = temp_convert(temp, TEMP_FAHRENHEIT, TEMP_CELSIUS) - if temp_low: - temp_low = temp_convert(temp_low, TEMP_FAHRENHEIT, TEMP_CELSIUS) if wind_speed: wind_speed = distance_convert(wind_speed, LENGTH_MILES, LENGTH_KILOMETERS)