[light] Pass light reference into lambda light effect (#16815)

This commit is contained in:
Jesse Hills
2026-06-05 10:28:50 +12:00
committed by GitHub
parent 9fbd4c38ae
commit a8032054ea
4 changed files with 11 additions and 4 deletions

View File

@@ -182,6 +182,9 @@ light:
state += 1;
if (state == 4)
state = 0;
if (initial_run) {
ESP_LOGD("custom_effect", "Effect %s started", it.get_name().c_str());
}
- pulse:
transition_length: 10s
update_interval: 20s