def get_device(self, pin=None):
        """ Query the status of a specific pin (or all configured pins if pin is ommitted) """
        url = self.base_url + '/device'
        try:
            r = requests.get(url, params={'pin': pin}, timeout=10)
            return r.json()
        except RequestException as err:
            raise Client.ClientError(err)