[pmwcs3] Use register_apply_action for the calibration and address actions (#19666)

This commit is contained in:
J. Nick Koston
2026-09-25 15:20:46 -04:00
committed by GitHub
parent 456e13adee
commit 29512cf323
4 changed files with 19 additions and 69 deletions
@@ -0,0 +1,9 @@
button:
- platform: template
name: PMWCS3 Actions
on_press:
- pmwcs3.air_calibration:
- pmwcs3.water_calibration:
- pmwcs3.new_i2c_address: 0x64
- pmwcs3.new_i2c_address:
address: !lambda return 0x65;
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
pmwcs3: !include common.yaml
actions: !include common-actions.yaml