k.rennerandClaude Opus 4.7 0d1ef94b9d fix(home-assistant): mqtt sidecar — sort jq keys before string-diffing
The drift check compares two jq -c outputs as strings. jq -c
preserves the input's key order, so a filtered current_mqtt has
keys in the source entry's order (broker, password, port, username)
while desired_mqtt has them in the order I wrote them (broker,
port, username, password). Identical values, different bytes,
spurious drift, perpetual self-delete loop.

Add -S to both jq invocations so keys come out sorted lexically and
the comparison reflects values only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 19:09:17 +02:00
S
Description
No description provided
39 MiB
master
Latest
2026-01-31 15:05:31 +00:00
Languages
Go 35.7%
Shell 24.3%
Python 22.4%
Jinja 5.1%
HCL 4.8%
Other 7.6%