[scd30] Use register_apply_action for scd30.force_recalibration_with_reference (#19652)

This commit is contained in:
J. Nick Koston
2026-09-25 14:32:05 -04:00
committed by GitHub
parent 6a115e6b25
commit 11c8e8c0c0
5 changed files with 15 additions and 43 deletions
@@ -0,0 +1,8 @@
button:
- platform: template
name: SCD30 Calibrate
on_press:
- scd30.force_recalibration_with_reference: 419
- scd30.force_recalibration_with_reference:
id: co2_scd30
value: !lambda return 420;
+1
View File
@@ -1,5 +1,6 @@
sensor:
- platform: scd30
id: co2_scd30
i2c_id: i2c_bus
co2:
name: SCD30 CO2
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
scd30: !include common.yaml
actions: !include common-actions.yaml