Repository navigation
Fix timezone changes, persistent firmware tasks and cat weight tracking - #44
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live timezone testing exposed that the APK's Windows-name payload is stored unchanged in the backend's IANA field and shifts DND clocks. Require an explicit valid IANA name, verify both timezone fields, and offer opt-in preservation of device-local DND clocks/switch/LED. The corrected Amsterdam/London roundtrip restored every original setting and cleaning plan. Existing change automations must add
iana_time_zone.Persist firmware target/task metadata before confirmation so reloads and uncertain POST failures cannot replay installation. Correlate terminal status with the exact task and distinguish stale pre-retry failures. The APK's realtime flow uses native Android JPush; this PR retains HTTP polling and does not claim an HA-compatible push subscription or measured percentage.
Fix fresh pet-profile weight precedence, missing-reading handling, kg/lb normalization and profile-edit unit validation (1=kg, 2=lb). Keep existing entity IDs, discover optional readings after startup and label daily cloud summaries with unknown measurement time/freshness. Add an offline physical-start observer for DST gaps/folds and date boundaries, and retain timezone operation results/partial failures in validation evidence.
Validation: 718 tests pass on HA 2026.10.1 and the exact minimum HA 2026.3.0; Ruff ALL, format and strict mypy pass including scripts. Owner physically confirmed clean and level. Fresh firmware read offers no update. Additional hardware/app acceptance is tracked explicitly in docs/remaining-validation.md; no unobserved criterion is marked passed. No empty command or statistics deletion was performed.
Refs #21, #22, #41, #42. Feeders and water dispensers remain deferred.