[grove_tb6612fng] Move direction logic from Python to C++ to fix lambda crash (#15513)

This commit is contained in:
Jonathan Swoboda
2026-04-07 16:56:25 -04:00
committed by GitHub
parent ac14b9e558
commit 9d396cea5a
3 changed files with 15 additions and 4 deletions
@@ -6,6 +6,11 @@ esphome:
speed: 255
direction: BACKWARD
id: test_motor
- grove_tb6612fng.run:
channel: 0
speed: !lambda "return 200;"
direction: BACKWARD
id: test_motor
- grove_tb6612fng.stop:
channel: 1
id: test_motor