blob: f2270436b7849bd0513f50a62e3d571ad1f10b19 [file] [log] [blame]
all_sensors = {}
def provides(sensor_class_name):
def closure(func):
assert sensor_class_name not in all_sensors
all_sensors[sensor_class_name] = func
return func
return closure