[rotary_encoder] Use register_apply_action for the set_value action (#19545)

This commit is contained in:
J. Nick Koston
2026-09-24 08:50:33 -04:00
committed by GitHub
parent 4cbced407d
commit f24e1f31f2
3 changed files with 3 additions and 32 deletions
+1 -1
View File
@@ -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: