When testing, I’d rather not delete the noisy step and then try to rebuild it from memory. You can park it where it is.
Add one line to the action:
actions:
- action: notify.mobile_app_phone
data:
message: "Washing machine is done"
enabled: false
- action: light.turn_on
target:
entity_id: light.laundry
The notification is skipped, the light still turns on, and your carefully written message stays in the file. The visual editor offers the same thing in the step’s menu.
It shines while debugging. Disable half the steps, run the automation, and see whether the problem goes away. Then narrow it down. It’s also handy for seasonal things, such as an action for the garden that sleeps all winter.
The value can be a template as well, so a step can depend on a helper like a holiday mode toggle. If that template can’t be rendered, though, the run stops with an error, so keep it simple.
Disabled steps have a habit of being forgotten. A comment above the line with the reason and the date helps, but in editor managed automations comments may not survive a save, so use the step’s own name or description there instead. Every now and then, I’d search your YAML for enabled: false and decide whether those steps should come back or be removed for good.
Further reading: Home Assistant script syntax
Going deeper: Guide: Home Assistant backups in Docker, with a failure alert on your phone and a copy off the box