From 37810e010acb53dc95163ef796a163338ccd08ce Mon Sep 17 00:00:00 2001 From: cgtobi Date: Thu, 18 Jul 2019 13:27:56 +0200 Subject: [PATCH] Fix the unit of measurement for ecobee climate (#25246) * Fix the unit of measurement * Remove unused const --- homeassistant/components/ecobee/climate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/ecobee/climate.py b/homeassistant/components/ecobee/climate.py index 058d9f43f837a..cd5c6fc666fb0 100644 --- a/homeassistant/components/ecobee/climate.py +++ b/homeassistant/components/ecobee/climate.py @@ -15,7 +15,7 @@ CURRENT_HVAC_COOL, SUPPORT_PRESET_MODE ) from homeassistant.const import ( - ATTR_ENTITY_ID, STATE_ON, ATTR_TEMPERATURE, TEMP_FAHRENHEIT, TEMP_CELSIUS) + ATTR_ENTITY_ID, STATE_ON, ATTR_TEMPERATURE, TEMP_FAHRENHEIT) import homeassistant.helpers.config_validation as cv _CONFIGURING = {} @@ -168,9 +168,6 @@ def name(self): @property def temperature_unit(self): """Return the unit of measurement.""" - if self.thermostat['settings']['useCelsius']: - return TEMP_CELSIUS - return TEMP_FAHRENHEIT @property