blob: f2270436b7849bd0513f50a62e3d571ad1f10b19 [file] [log] [blame]
koder aka kdanilovdda86d32015-03-16 11:20:04 +02001all_sensors = {}
2
3
4def provides(sensor_class_name):
5 def closure(func):
6 assert sensor_class_name not in all_sensors
7 all_sensors[sensor_class_name] = func
8 return func
9 return closure