[cm1106] Use register_apply_action for cm1106.calibrate_zero (#19678)

This commit is contained in:
J. Nick Koston
2026-09-25 19:56:49 +00:00
committed by GitHub
parent 27ea1a90e3
commit d96d0b80f7
4 changed files with 15 additions and 18 deletions
@@ -0,0 +1,5 @@
button:
- platform: template
name: CM1106 Calibrate Zero
on_press:
- cm1106.calibrate_zero:
@@ -0,0 +1,8 @@
substitutions:
tx_pin: GPIO0
rx_pin: GPIO2
packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
cm1106: !include common.yaml
actions: !include common-actions.yaml