From 1cec97008bcf297c692e4eb1c40b95c327c08ddc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 12 Nov 2025 17:15:14 -0600 Subject: [PATCH] still de-dupe --- esphome/components/ld24xx/ld24xx.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esphome/components/ld24xx/ld24xx.h b/esphome/components/ld24xx/ld24xx.h index 9d8a062540..9975099663 100644 --- a/esphome/components/ld24xx/ld24xx.h +++ b/esphome/components/ld24xx/ld24xx.h @@ -34,8 +34,9 @@ } #define SAFE_PUBLISH_SENSOR_WITHOUT_FILTERS(sensor, value) \ - if ((sensor) != nullptr && (sensor)->sens->get_state() != (value)) { \ - (sensor)->sens->publish_state(value); \ + if ((sensor) != nullptr) { \ + (sensor)->publish_dedup.next(value); \ + (sensor)->sens->publish_state(static_cast(value)); \ } #define highbyte(val) (uint8_t)((val) >> 8)