[hdc302x] Use register_apply_action for heater_on and heater_off (#19673)

This commit is contained in:
J. Nick Koston
2026-09-25 15:40:42 -04:00
committed by GitHub
parent 9654dd3912
commit 5aeab5f361
4 changed files with 22 additions and 46 deletions
@@ -0,0 +1,12 @@
button:
- platform: template
name: HDC302x Actions
on_press:
- hdc302x.heater_on:
id: hdc302x_sensor
power: 0x03FF
duration: !lambda return 2000;
- hdc302x.heater_on:
id: hdc302x_sensor
power: !lambda return 0x3FFF;
- hdc302x.heater_off: hdc302x_sensor
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
hdc302x: !include common.yaml
actions: !include common-actions.yaml