mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 19:44:08 +00:00
[script] Let the empty argument tuple take no space for scripts without parameters (#20140)
This commit is contained in:
@@ -254,7 +254,8 @@ template<class... As, typename... Ts> class ScriptExecuteAction<Script<As...>, T
|
||||
}
|
||||
|
||||
Script<As...> *script_;
|
||||
Args args_;
|
||||
// Empty tuple for scripts without parameters; takes no space then
|
||||
[[no_unique_address]] Args args_;
|
||||
};
|
||||
|
||||
/** Wait for a script to finish before continuing.
|
||||
|
||||
Reference in New Issue
Block a user