'Return UPS operating state.'

def opp_state(self):

    if (self._data.status is None):
        return STATE_TYPES['OFF']
    else:
        try:
            return '    '.join((STATE_TYPES[state] for state in self._data.status[KEY_STATUS].split()))
        except KeyError:
            return STATE_UNKNOWN
