mirror of
https://github.com/esphome/esphome.git
synced 2026-02-25 04:45:29 -07:00
tweaks
This commit is contained in:
@@ -64,6 +64,13 @@ def register_action(
|
||||
*,
|
||||
deferred: bool = False,
|
||||
):
|
||||
"""Register an action type.
|
||||
|
||||
Set ``deferred=True`` if this action stores trigger arguments for later
|
||||
execution (e.g. delay, wait_until, script.wait). This tells the code
|
||||
generator to use owning types (std::string) instead of non-owning views
|
||||
(StringRef) for string arguments, preventing dangling references.
|
||||
"""
|
||||
return ACTION_REGISTRY.register(name, action_type, schema, deferred=deferred)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user