mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[globals] Use register_apply_action for globals.set (#19481)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user