mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-24 07:06:46 +00:00
changes sensor_filter to return sensor_info that contains dev_labels
This commit is contained in:
parent
1ee4957c3c
commit
5066bb29d1
@ -21,9 +21,13 @@ class OrionContextBroker(ResourceManagementXAE):
|
||||
def _on_register(self):
|
||||
self._discover_openmtc_ipe_entities()
|
||||
|
||||
def _sensor_filter(self, sensor):
|
||||
def _new_actuator(self, actuator_info):
|
||||
# handle OCB actuator here
|
||||
pass
|
||||
|
||||
def _sensor_filter(self, sensor_info):
|
||||
if self.labels:
|
||||
return len(self.labels.intersection(sensor.labels)) > 0
|
||||
return len(self.labels.intersection(sensor_info['sensor_labels'])) > 0
|
||||
else:
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user