@property
    def operation(self):
        """Return current operation ie. heat, cool, idle."""
        status = self.thermostat['equipmentStatus']
        if status == '':
            return STATE_IDLE
        elif 'Cool' in status:
            return STATE_COOL
        elif 'auxHeat' in status:
            return STATE_HEAT
        elif status in 'heatPump':
            return STATE_HEAT
        else:
            return status
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/thermostat/ecobee.py/Thermostat.operation/swapped operands of `in`