Add climate services required features (#35804)

This commit is contained in:
Martin Hjelmare
2020-05-20 23:47:30 +02:00
committed by GitHub
parent 9907e95c34
commit 1593bdf2e9
3 changed files with 21 additions and 3 deletions

View File

@@ -309,12 +309,12 @@ class DemoClimate(ClimateEntity):
self._preset = preset_mode
self.async_write_ha_state()
def turn_aux_heat_on(self):
async def async_turn_aux_heat_on(self):
"""Turn auxiliary heater on."""
self._aux = True
self.async_write_ha_state()
def turn_aux_heat_off(self):
async def async_turn_aux_heat_off(self):
"""Turn auxiliary heater off."""
self._aux = False
self.async_write_ha_state()