mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[cm1106] Use register_apply_action for cm1106.calibrate_zero (#19678)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user