'Initialize the thermostat.'

def __init__(self, structure, device, temp_unit):

    self._unit = temp_unit
    self.structure = structure
    self.device = device
    self._fan_list = [STATE_ON, STATE_AUTO]
    self._operation_list = [STATE_OFF]
    if self.device.can_heat:
        self._operation_list.append(STATE_HEAT)
    if self.device.can_cool:
        self._operation_list.append(STATE_COOL)
    if (self.device.can_heat and self.device.can_cool):
        self._operation_list.append(STATE_AUTO)
    self._operation_list.append(STATE_ECO)
    self._has_fan = self.device.has_fan
    self._away = None
    self._location = None
    self._name = None
    self._humidity = None
    self._target_temperature = None
    self._temperature = None
    self._temperature_scale = None
    self._mode = None
    self._fan = None
    self._eco_temperature = None
    self._is_locked = None
    self._locked_temperature = None
    self._min_temperature = None
    self._max_temperature = None
