1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Make initial run variable available to addressable_lambda (#1035)

* Make initial run variable available to addressable_lambda

* Fix linting

* Remove if clause
This commit is contained in:
Niklas Wagner
2020-04-29 00:24:06 +02:00
committed by GitHub
parent a2a83c5004
commit 39b35b79ba
3 changed files with 11 additions and 5 deletions

View File

@@ -1155,7 +1155,9 @@ light:
- addressable_lambda:
name: "Test For Custom Lambda Effect"
lambda: |-
it[0] = current_color;
if (initial_run) {
it[0] = current_color;
}
- automation:
name: Custom Effect