mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
[stepper] Use register_apply_action for the setter actions (#19470)
This commit is contained in:
@@ -25,3 +25,12 @@ switch:
|
||||
- stepper.report_position:
|
||||
id: test_stepper
|
||||
position: 0
|
||||
- stepper.set_speed:
|
||||
id: test_stepper
|
||||
speed: 300 steps/s
|
||||
- stepper.set_acceleration:
|
||||
id: test_stepper
|
||||
acceleration: !lambda return 150.0f;
|
||||
- stepper.set_deceleration:
|
||||
id: test_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
|
||||
Reference in New Issue
Block a user