Skip to content

plug_policy_engine v0.3.2

Choose a tag to compare

@Levtos-Acc Levtos-Acc released this 08 Jul 08:44
· 19 commits to main since this release
4f0284a

Summary

FLEET-170: Tablet/dashboard charging fail-safe is no longer blocked by transient unavailable/unknown suspend states.

Fix

  • Tablet charging can bypass policy suspend when battery is unknown/unavailable or below the configured low threshold.
  • Tablet low/unknown battery turn_on reasserts no longer trigger the non-latching auto-suspend guard.
  • Optional display service calls are skipped when the display target itself is unknown/unavailable.
  • Non-tablet appliance behavior and existing safety blockers remain unchanged.

Tests

  • python -m pytest tests\plug_policy_engine\test_engine.py tests\plug_policy_engine\test_apply_debounce.py -q -> 59 passed
  • python -m pytest tests\plug_policy_engine\test_tablet_display.py -q -> 9 passed
  • python -m pytest -q -> 174 passed
  • python -m compileall -q custom_components\plug_policy_engine tests\plug_policy_engine -> passed
  • python -m json.tool custom_components\plug_policy_engine\manifest.json -> passed

Deploy

No deploy performed. Benni handles HACS update/deploy and Home Assistant restart/reload.