[hc8] Use register_apply_action for hc8.calibrate (#19681)

This commit is contained in:
J. Nick Koston
2026-09-25 20:29:04 -04:00
committed by GitHub
parent 1889f6c9b5
commit 3e85af29c6
4 changed files with 17 additions and 25 deletions
+7
View File
@@ -0,0 +1,7 @@
button:
- platform: template
name: HC8 Calibrate
on_press:
- hc8.calibrate:
id: hc8_sensor
baseline: !lambda return 400;
@@ -0,0 +1,8 @@
substitutions:
tx_pin: GPIO0
rx_pin: GPIO2
packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
hc8: !include common.yaml
actions: !include common-actions.yaml