Skip to content

Commit

Permalink
Merge pull request #2 from mjoshd/mjoshd-patch-1
Browse files Browse the repository at this point in the history
update compatibility with ESPHome 1.13.5
  • Loading branch information
mjoshd authored Jun 9, 2019
2 parents 3bd3dac + 3055fd5 commit 3f82201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion martin_jerry_mj_sd01_dimmer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ interval:
# https://esphome.io/guides/automations.html#interval
then:
- lambda: |-
auto dimmer_vals = id(dimmer).get_current_values();
auto dimmer_vals = id(dimmer).current_values;
if (dimmer_vals.is_on()) {
id(dimmer_lvl) = dimmer_vals.get_brightness();
if (id(dimmer_lvl) > .19) { id(led2).turn_on(); }
Expand Down

0 comments on commit 3f82201

Please sign in to comment.