seanrees / prometheus-dyson

Prometheus client for DysonLink fans (Pure Hot+Cool)
MIT License
13 stars 9 forks source link

Fix reconnect bug and add watchdog timer and bump to 0.4.1 #21

Closed seanrees closed 1 year ago

seanrees commented 1 year ago

We called disconnect() twice on the underlying libdyson object, which resulted in an unhandled exception and the process hanging. Unfortunately addressing this does not reliably result in reconnects; so also add a default 5 minute watchdog timer. If the timer expires, the process aborts so systemd can restart it.

This PR also adds VSCode tasks and bumps version to 0.4.1.