def output(output_id, name, value_class=NumberValue):
        """Add output to controller"""
        def _init():
            return value_class(
                name,
                input_id=output_id,
                is_input=False,
                index=-1
            )
        def _decorator(cls):
            setattr(cls, output_id, _init())
            return cls
        return _decorator
def output ( output_id , name , value_class = NumberValue ) : def _init ( ) : return value_class ( name , input_id = output_id , is_input = False , index = - 1 ) def _decorator ( cls ) : setattr ( cls , output_id , _init ( ) ) return cls return _decorator
Add output to controller