Sort cached images in two passes again #107

Merged
Claude merged 1 commit from fix/image-sort-prefix into refactor/code-hygiene 2026-09-28 07:53:59 +00:00
Collaborator

#105's single-sort key negated the version tuple to get descending order, but negation does not reverse Python's rule that a shorter prefix tuple sorts first, so "2026.9" would sort newer than "2026.9.1". Dormant with three-part CalVer, wrong all the same. Back to two stable passes, the documented idiom, with a regression test.

#105's single-sort key negated the version tuple to get descending order, but negation does not reverse Python's rule that a shorter prefix tuple sorts first, so "2026.9" would sort newer than "2026.9.1". Dormant with three-part CalVer, wrong all the same. Back to two stable passes, the documented idiom, with a regression test.
Sort cached images in two passes again
All checks were successful
Lint, type check and test / hassfest (pull_request) Successful in 8s
Lint, type check and test / quality (pull_request) Successful in 1m52s
Lint, type check and test / release (pull_request) Has been skipped
519e457d86
Negating the version tuple does not reverse the rule that a shorter prefix
sorts first, so a version with fewer segments came out newest. Two stable
passes are the documented idiom for mixed directions.
Claude merged commit 8ebfe264bc into refactor/code-hygiene 2026-09-28 07:53:59 +00:00
Claude deleted branch fix/image-sort-prefix 2026-09-28 07:53:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rob/CampervanHomeAssistant!107
No description provided.