Skip to content

Commit

Permalink
Climate 1.0 / part 1/2/3
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Jul 2, 2019
1 parent 6c25c97 commit e3080e6
Show file tree
Hide file tree
Showing 79 changed files with 2,304 additions and 2,453 deletions.
11 changes: 5 additions & 6 deletions homeassistant/components/ambiclimate/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@

from homeassistant.components.climate import ClimateDevice
from homeassistant.components.climate.const import (
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_ON_OFF, STATE_HEAT)
SUPPORT_TARGET_TEMPERATURE, HVAC_MODE_OFF,
SUPPORT_ON_OFF, HVAC_MODE_HEAT)
from homeassistant.const import ATTR_NAME
from homeassistant.const import (ATTR_TEMPERATURE,
STATE_OFF, TEMP_CELSIUS)
from homeassistant.const import (ATTR_TEMPERATURE, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from .const import (ATTR_VALUE, CONF_CLIENT_ID, CONF_CLIENT_SECRET,
Expand Down Expand Up @@ -198,9 +197,9 @@ def supported_features(self):
return SUPPORT_FLAGS

@property
def current_operation(self):
def hvac_mode(self):
"""Return current operation."""
return STATE_HEAT if self.is_on else STATE_OFF
return HVAC_MODE_HEAT if self.is_on else HVAC_MODE_OFF

async def async_set_temperature(self, **kwargs):
"""Set new target temperature."""
Expand Down
Loading

0 comments on commit e3080e6

Please sign in to comment.