mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 15:30:21 +00:00
[hc8] Use register_apply_action for hc8.calibrate (#19681)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user