Skip to content

Version 0.5.0

Latest

Choose a tag to compare

@eman eman released this 21 Feb 22:47
· 26 commits to main since this release

What's Changed

Fixed

  • Missing PROPORTIONAL_PRESSURE in _MODE_BYTE_MAP: Added mode value 1 → byte 0x01, preventing a KeyError when starting or stopping the pump in proportional pressure mode.
  • Alarm/warning descriptions not populated: read_alarms() now resolves each active alarm and warning code against ERROR_CODES, populating alarm_description and warning_description as comma-separated human-readable strings. Unknown codes fall back to "Unknown (<code>)".

Changed

  • CLI alarm panel: The alarm status panel now lists every active alarm and warning code with its description rather than showing only a single code.

Tests

  • Extended test_read_alarms to assert alarm_description and warning_description are correctly populated.
  • Added test_read_alarms_unknown_code_fallback to verify the "Unknown (<code>)" fallback for codes not present in ERROR_CODES.

Full changelog: https://github.com/eman/alpha-hwr/blob/main/CHANGELOG.md