mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[scd4x] Use register_apply_action for perform_forced_calibration and factory_reset (#19630)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user