Skip to content

openGym 0.11.4

Choose a tag to compare

@JImmyB0nes JImmyB0nes released this 18 Nov 14:12
· 4 commits to main since this release

What's new since 0.11.3

Four bugs from the audit of 0.11.3, all fixed with a regression test that fails on the old code. No new features, no migration; entity IDs unchanged.

Fixed

  • Options dialog on Home Assistant 2024.11.0–2024.11.3: OpenGymOptionsFlow read self.config_entry, which a plain OptionsFlow only exposes from 2024.12.0. On our declared minimum version, opening Configure threw an AttributeError and nothing opened. The flow now keeps the entry core hands it in async_get_options_flow(entry) — deliberately not OptionsFlowWithConfigEntry, which core reports as a deprecated pattern.
  • Muscle recovery never said "recovering": muscle_days stopped scanning when it had dates for 14 groups, while openGym's map fills 18 slugs. Muscles trained only in older sessions stayed at 999 days — calves and adductors reported "never trained" even after a leg day.
  • Set totals disagreed between entities: the muscle-balance state summed all 18 map slugs, the weekly_sets_* sensors only the 14 with entities. Once serratus/obliques/hip-flexors/tibialis got sets, the card's total and the sensors drifted apart. Balance state, 12-week history and the card now share one basis; the per-muscle attributes keep openGym's full map for the body diagram.
  • Unsigned webhook deliveries were silent: an entry without a signing secret accepted every delivery without verification. It now raises a repair ("deliveries arrive unsigned", en/de) with the steps to fix it, instead of running unauthenticated in the background.

Also

  • Logbook: icon fallback instead of a KeyError when openGym ships a new event type.
  • Device triggers: a missing test key (YAML automations, setups before 0.11) now filters test deliveries like the UI default.
  • Update entity reads client.base_url instead of the private _url; dead weight removed (unused LOOKAHEAD_DAYS, snapshot._rev, unused constants and imports).

Testing

  • 109 logic tests + 21 tests against a real Home Assistant core, both green; 10 of them new for this release.