From 1661f84deb175fb880c483ae757a572945577a25 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Oct 2026 02:32:04 -1000 Subject: [PATCH] [udp] Cover identical constant and trigger argument write payloads in the component test (#20266) --- tests/components/udp/common.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/components/udp/common.yaml b/tests/components/udp/common.yaml index 6824c5cca8..f3a082fdd2 100644 --- a/tests/components/udp/common.yaml +++ b/tests/components/udp/common.yaml @@ -20,6 +20,13 @@ udp: id: my_udp data: !lambda |- return std::vector{1,3,4,5,6}; + - udp.write: + id: my_udp + data: [0xAA, 0x55, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06] + - udp.write: + id: my_udp + data: !lambda |- + return std::vector(data.begin(), data.end()); number: - platform: template @@ -37,5 +44,7 @@ button: then: - udp.write: data: [0x01, 0x02, 0x03] + - udp.write: + data: [0xAA, 0x55, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06] - udp.write: !lambda |- return {0x10, 0x20, (uint8_t)id(udp_my_number).state};