aboutsummaryrefslogtreecommitdiff
path: root/src/entity_sensor.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-12-05 20:00:48 +0000
committerdiogo464 <[email protected]>2025-12-05 20:00:48 +0000
commitf64200686f402157e525158f6133763bdfdc2b58 (patch)
tree76678476f8bf6012215b9cfe8df1006d408e6581 /src/entity_sensor.rs
parentb7ce3e0679817e0fbfec2eface4b21d652621825 (diff)
added queue_publish logic to switch set method
Updates switch's set method to only queue publish when the state value actually changes, matching the behavior in entity_number. This prevents unnecessary MQTT publishes when setting the same state multiple times. 🤖 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