[scd4x] Use register_apply_action for perform_forced_calibration and factory_reset (#19630)

This commit is contained in:
J. Nick Koston
2026-09-25 13:02:58 -04:00
committed by GitHub
parent 7294da9f49
commit c561c6bbe8
4 changed files with 19 additions and 56 deletions
@@ -0,0 +1,11 @@
button:
- platform: template
name: SCD4x Actions
on_press:
- scd4x.perform_forced_calibration:
id: scd40
value: 419
- scd4x.perform_forced_calibration:
id: scd40
value: !lambda return 420;
- scd4x.factory_reset: scd40
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
scd4x: !include common.yaml
actions: !include common-actions.yaml