@property
    def mode(self):
        """Return current mode ie. home, away, sleep."""
        mode = self.thermostat['program']['currentClimateRef']
        self._away = 'away' in mode
        return mode
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/thermostat/ecobee.py/Thermostat.mode/original