Repository navigation
openGym 0.11.4
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:
OpenGymOptionsFlowreadself.config_entry, which a plainOptionsFlowonly 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 inasync_get_options_flow(entry)— deliberately notOptionsFlowWithConfigEntry, which core reports as a deprecated pattern. - Muscle recovery never said "recovering":
muscle_daysstopped 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 —calvesandadductorsreported "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
testkey (YAML automations, setups before 0.11) now filters test deliveries like the UI default. - Update entity reads
client.base_urlinstead of the private_url; dead weight removed (unusedLOOKAHEAD_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.