'Get the latest data from the Pi-Hole.'

def update(self):

    try:
        self._rest.update()
        self.data = json.loads(self._rest.data)
        self.available = True
    except TypeError:
        _LOGGER.error('Unable    to    fetch    data    from    Pi-Hole')
        self.available = False
