mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
[zephyr_ble_server] add support for on_numeric_comparison_request (#14400)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
Copilot
J. Nick Koston
J. Nick Koston
parent
4c758fa1da
commit
04a58159d0
@@ -0,0 +1,10 @@
|
||||
zephyr_ble_server:
|
||||
on_numeric_comparison_request:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "Compare this passkey with the one on your BLE device: %06d"
|
||||
args: [passkey]
|
||||
- ble_server.numeric_comparison_reply:
|
||||
accept: True
|
||||
- ble_server.numeric_comparison_reply:
|
||||
accept: !lambda "return true;"
|
||||
Reference in New Issue
Block a user