'Return current operation ie. heat, cool, idle.'

@property
def current_operation(self):

    if (HM_CONTROL_MODE not in self._data):
        return None
    for (mode, state) in HM_STATE_MAP.items():
        code = getattr(self._hmdevice, mode, 0)
        if (self._data.get('CONTROL_MODE') == code):
            return state
