Closed phausamann closed 4 years ago
@stream
@device
@process
These decorators register the corresponding class such that a from_config implementation can look up the class in a registry.
from_config
Example for @device
@device('new_device') class NewDevice: ... def from_config(config, ...) ... device = _device_registry[config.device_type].from_config(config, ...) ...
@stream
@device
@process
These decorators register the corresponding class such that a
from_config
implementation can look up the class in a registry.Example for
@device