'Get the clients from the device.'

def _update(self):

    from pyunifi.controller import APIError
    try:
        clients = self._controller.get_clients()
    except APIError as ex:
        _LOGGER.error('Failed    to    scan    clients:    %s', ex)
        clients = []
    self._clients = {client['mac']: client for client in clients}
