[ld2410] Use register_apply_action for bluetooth_password.set (#19667)

This commit is contained in:
J. Nick Koston
2026-09-25 19:20:44 +00:00
committed by GitHub
parent a1b0e85a9e
commit 456e13adee
5 changed files with 20 additions and 43 deletions
@@ -0,0 +1,10 @@
button:
- platform: template
name: LD2410 Actions
on_press:
- bluetooth_password.set:
id: my_ld2410
password: HiLink
- bluetooth_password.set:
id: my_ld2410
password: !lambda return "HiLink";
@@ -0,0 +1,8 @@
substitutions:
tx_pin: GPIO0
rx_pin: GPIO2
packages:
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
ld2410: !include common.yaml
actions: !include common-actions.yaml