diff options
Diffstat (limited to 'presence/templates/anyof.mako.hpp')
-rw-r--r-- | presence/templates/anyof.mako.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/presence/templates/anyof.mako.hpp b/presence/templates/anyof.mako.hpp new file mode 100644 index 0000000..cc0ca09 --- /dev/null +++ b/presence/templates/anyof.mako.hpp @@ -0,0 +1,7 @@ +std::make_unique<AnyOf>( +${indent(1)}ConfigFans::get()[${f.fan}], +${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{ +% for s in f.sensors: +${indent(2)}*ConfigSensors::get()[${s}], +% endfor +${indent(1)}})\ |