Skip to content

Commit

Permalink
Fix the unit of measurement for ecobee climate (#25246)
Browse files Browse the repository at this point in the history
* Fix the unit of measurement

* Remove unused const
  • Loading branch information
cgtobi authored and balloob committed Jul 18, 2019
1 parent 2b69904 commit 37810e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions homeassistant/components/ecobee/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 37810e0

Please sign in to comment.