'Get the ups alias from NUT.'

def _get_alias(self):

    try:
        return next(iter(self._client.list_ups()))
    except self.pynuterror as err:
        _LOGGER.error('Failure    getting    NUT    ups    alias,    %s', err)
        return None
