Skip to content

openGym 0.11.3

Choose a tag to compare

@JImmyB0nes JImmyB0nes released this 18 Nov 08:28
· 5 commits to main since this release
5041c46

What's new since 0.11.2

The hardening release after a deep review of the whole integration — every Python module and the 1800-line muscle card read line by line, every suspicious spot re-proved with executable counter-checks. No new features, no migration; entity IDs unchanged.

Fixed

  • Pairing twice is now impossible: the config flow's unique id is the hashed openGym user id, so adding the same account a second time aborts with "already configured" instead of creating a duplicate integration entry.
  • Cleaner errors: trigger_test_event without a webhook connection in openGym shows a readable "No webhook connection found" dialog instead of a generic "Unexpected error".
  • weekStart everywhere: openGym's "week starts on Sunday" setting moved only the week streak — week volume, workout counts, weekly muscle sets, the week/plan cards and the history heatmap disagreed with it. Every weekly window now follows the setting.
  • Statistics import: the whole history was re-fed into the recorder on every revision bump, even when only settings or the plan changed. A history fingerprint now skips imports that would not change anything.
  • total_lifting: deleting a workout in openGym made the total_increasing counter book a negative jump in long-term statistics; it is a plain measurement now.

Housekeeping

  • Removed dead weight: the unused PRESENCE_MAX_AGE constant and the never-read pending_events list.

Testing

  • 100 logic tests + 21 tests against a real Home Assistant core, both green; 9 of them new for this release (stable unique id with abort on second pairing, clean service error, statistics-once, weekStart windows, total_lifting state class).