mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix the unit of measurement for ecobee climate (#25246)
* Fix the unit of measurement * Remove unused const
This commit is contained in:
parent
e13e4376f8
commit
89ed26eb86
@ -15,7 +15,7 @@ from homeassistant.components.climate.const import (
|
|||||||
CURRENT_HVAC_COOL, SUPPORT_PRESET_MODE
|
CURRENT_HVAC_COOL, SUPPORT_PRESET_MODE
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
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
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_CONFIGURING = {}
|
_CONFIGURING = {}
|
||||||
@ -168,9 +168,6 @@ class Thermostat(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def temperature_unit(self):
|
def temperature_unit(self):
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
if self.thermostat['settings']['useCelsius']:
|
|
||||||
return TEMP_CELSIUS
|
|
||||||
|
|
||||||
return TEMP_FAHRENHEIT
|
return TEMP_FAHRENHEIT
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user