def update_sensor_list(self, groupname, force=False): url = self.qurl('sensor', db_group=groupname) self._sensors[groupname] = { v['name']: v['value'] for v in query_xml(url) }
def update_sensor_list(self, groupname, force=False): url = self.qurl("sensor", db_group=groupname) self._sensors[groupname] = {v["name"]: v["value"] for v in query_xml(url)}
def update_group_list(self): url = self.qurl('group') self._groups = query_xml(url)
def update_group_list(self): url = self.qurl("group") self._groups = query_xml(url)