Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset heartbeat on .start() #69

Merged
merged 2 commits into from Jun 30, 2021
Merged

Conversation

dumpfheimer
Copy link
Contributor

Hi!

I have noticed that the heartbeats seem to stop after a KLF reboot (or any other reconnect).
After looking into the code it seems like the heartbeat is not recreated, so after the stop function was called once, the stopped parameter stays False and will never be set back to True. Therefore when start is called at the next reconnect (at least it seems like it is called) it will immediately stop again.

This PR has fixed the issue for me, but i did not dig deeper into the code and did not do rigorous testing.
As a side effect this seems to have fixed some issues with the HouseStatusmonitor (states were not being updated)

@Julius2342 Julius2342 merged commit ed8f7d2 into Julius2342:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants