mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[rotary_encoder] Use register_apply_action for the set_value action (#19545)
This commit is contained in:
@@ -18,7 +18,7 @@ sensor:
|
||||
value: 10
|
||||
- sensor.rotary_encoder.set_value:
|
||||
id: rotary_encoder1
|
||||
value: !lambda "return -1;"
|
||||
value: !lambda "return -static_cast<int>(x);"
|
||||
on_clockwise:
|
||||
- logger.log: Clockwise
|
||||
on_anticlockwise:
|
||||
|
||||
Reference in New Issue
Block a user