[sx126x] Cover shared constant and trigger argument send_packet payloads in the component test (#20272)

This commit is contained in:
J. Nick Koston
2026-10-07 08:30:48 -04:00
committed by GitHub
parent e4d8913680
commit 40809ffa10
+7
View File
@@ -36,6 +36,10 @@ number:
min_value: 0
max_value: 100
step: 1
on_value:
then:
- sx126x.send_packet: !lambda |-
return {0x03, (uint8_t) x};
button:
- platform: template
@@ -50,3 +54,6 @@ button:
data: [0xC5, 0x51, 0x78, 0x82, 0xB7, 0xF9, 0x9C, 0x5C]
- sx126x.send_packet: !lambda |-
return {0x01, 0x02, (uint8_t)id(sx126x_my_number).state};
# Same bytes as above on purpose: equal payloads share one flash table
- sx126x.send_packet: [0xC5, 0x51, 0x78, 0x82, 0xB7, 0xF9, 0x9C, 0x5C]
- sx126x.send_packet: "hello"