[cc1101] Cover shared, string and trigger argument send_packet payloads in the component test (#20263)

This commit is contained in:
J. Nick Koston
2026-10-07 08:32:18 -04:00
committed by GitHub
parent 1661f84deb
commit 19561d44a2
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -30,6 +30,8 @@ cc1101:
then:
- lambda: |-
ESP_LOGD("cc1101", "packet %s freq_offset %.0f Hz rssi %.1f dBm lqi %u", format_hex(x).c_str(), freq_offset, rssi, lqi);
- cc1101.send_packet: !lambda |-
return x;
button:
- platform: template
@@ -42,6 +44,8 @@ button:
- cc1101.reset: transceiver
- cc1101.send_packet:
data: [0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef]
- cc1101.send_packet: [0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef]
- cc1101.send_packet: "ABCDEFGH"
- cc1101.send_packet: !lambda |-
return {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};