'Return current hold mode.'

@property
def current_hold_mode(self):

    events = self.thermostat['events']
    for event in events:
        if event['running']:
            if (event['type'] == 'hold'):
                if (event['holdClimateRef'] == 'away'):
                    if ((int(event['endDate'][0:4]) - int(event['startDate'][0:4])) <= 1):
                        return 'away'
                    return None
                elif (event['holdClimateRef'] != ''):
                    return event['holdClimateRef']
                return TEMPERATURE_HOLD
            elif event['type'].startswith('auto'):
                return event['type'][4:].lower()
            elif (event['type'] == 'vacation'):
                self.vacation = event['name']
                return VACATION_HOLD
    return None
