Fix typos in code snippets for stepper component (#1938)

Fix the code snippets that demonstrate stepper.set_acceleration and stepper.set_deceleration, which both erroneously used the key "speed" instead of the correct "acceleration" and "deceleration".
This commit is contained in:
cooperised 2022-03-11 02:00:26 +00:00 committed by GitHub
parent b7d1f8698e
commit 19482f862e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ This :ref:`Action <config-action>` allows you to set the acceleration of a stepp
on_...: on_...:
- stepper.set_acceleration: - stepper.set_acceleration:
id: my_stepper id: my_stepper
speed: 250 steps/s^2 acceleration: 250 steps/s^2
Configuration variables: Configuration variables:
@ -260,7 +260,7 @@ This :ref:`Action <config-action>` allows you to set the deceleration of a stepp
on_...: on_...:
- stepper.set_deceleration: - stepper.set_deceleration:
id: my_stepper id: my_stepper
speed: 250 steps/s^2 deceleration: 250 steps/s^2
Configuration variables: Configuration variables: