'Initialize the device.'

def __init__(self, hass, thermostat, name, away_temp):

    self._name = name
    self.hass = hass
    self._away = False
    self._away_temp = away_temp
    self._prev_temp = thermostat.setpoint
    self.thermostat = thermostat
    self.thermostat.mode = 2
    self._state = None
    self._temperature = None
    self._setpoint = None
