aboutsummaryrefslogtreecommitdiff
path: root/src/entity_sensor.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-06 14:47:54 +0000
committerdiogo464 <[email protected]>2025-12-06 14:47:54 +0000
commit3a974cec36cd8a48992e05629325d8279cf289b7 (patch)
tree2e4c9457771f7d658235b2037835b87c47d202fd /src/entity_sensor.rs
parent809b1b795ed530d20ceb6f3cb42af70daa7eadf9 (diff)
Fix availability handling with MQTT retain flag
Added retain flag support to MQTT messages to properly handle device availability in Home Assistant. Both the availability "online" publish and the last will "offline" message now use retain=true, ensuring HA always sees the current device status even when subscribing after the messages were sent. Changes: - Added will_retain field to embedded_mqtt::ConnectParams - Set retain=true for availability publish using publish_with() - Set will_retain=true in connect params for last will message 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'src/entity_sensor.rs')
0 files changed, 0 insertions, 0 deletions