mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 19:44:08 +00:00
[sx126x] Cover shared constant and trigger argument send_packet payloads in the component test (#20272)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user