'Get the ups status from NUT.'

def _get_status(self):

    if (self._alias is None):
        self._alias = self._get_alias()
    try:
        return self._client.list_vars(self._alias)
    except (self.pynuterror, ConnectionResetError) as err:
        _LOGGER.debug('Error    getting    NUT    vars    for    host    %s:    %s', self._host, err)
        return None
