aboutsummaryrefslogtreecommitdiff
path: root/src/entity_switch.rs
Commit message (Collapse)AuthorAgeFilesLines
* cargo fmtdiogo4642026-01-201-3/+1
|
* fixed clippy warningsdiogo4642025-12-161-9/+1
|
* Improve documentation and replace publish_on_command with CommandPolicy enumdiogo4642025-12-141-3/+7
| | | | | | | | | | | | | - Enhanced crate-level documentation with comprehensive examples and feature list - Improved README with badges, better structure, and clearer examples - Added README.tpl template and generate-readme.sh script for cargo-readme - Documented run() and connect_and_run() functions with detailed behavior explanations - Replaced publish_on_command boolean with CommandPolicy enum (PublishState/Manual) - Added comprehensive documentation for CommandPolicy explaining both modes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
* formatting and improved timeout handlingdiogo4642025-12-081-1/+3
|
* added queue_publish logic to switch set methoddiogo4642025-12-051-4/+17
| | | | | | | | | | 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]>
* added publish_on_command option to switchdiogo4642025-12-051-2/+20
|
* reworked entity storagediogo4642025-12-051-4/+12
|
* reworked entity creationdiogo4642025-12-051-0/+59