palazzem / ha-econnect-alarm

Home Assistant integration that provides a full-fledged Alarm Panel to control your Elmo/IESS alarm systems.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

fix(collector): return previous states when the device is disconnected #150

Closed palazzem closed 7 months ago

palazzem commented 7 months ago

Related Issues

Proposed Changes

Context: This update enhances the AlarmCoordinator by enabling it to handle device disconnections during state polling and updates more gracefully.

Problem Solved: Previously, a device disconnection led to all binary sensors entering an "Unavailable" state, potentially triggering undesired automations, including false alarm activations. To mitigate this, the update allows the AlarmCoordinator to retain the device's last known state instead of defaulting to "Unavailable" during brief disconnections.

Implementation Details:

Testing

Extra Notes

Checklist

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 8112370177

Details


Totals Coverage Status
Change from base Build 7977463231: 0.1%
Covered Lines: 669
Relevant Lines: 716

💛 - Coveralls