[globals] Use register_apply_action for globals.set (#19481)

This commit is contained in:
J. Nick Koston
2026-09-24 10:25:42 +12:00
committed by GitHub
parent a47271b1f1
commit 281c54bcb8
3 changed files with 14 additions and 42 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ esphome:
- globals.set:
id: glob_int
value: "10"
# Set a float global with an integer literal - must emit the correct
# return type so TemplatableFn stores a direct function pointer.
# Set a float global with an integer literal; the lambda must return the
# global's own type so the assignment needs no conversion.
- globals.set:
id: glob_float
value: "102"