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

Tibber: resubscribe on clean disconnect #18643

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GrimmiMeloni
Copy link
Collaborator

fix #17925

Resubscribes in case of a clean exit.

@GrimmiMeloni
Copy link
Collaborator Author

@andig I refactored the existing subscription logic into a function (subscribe), and added an optional unsubscribe to it (in case we have a subscriptionId from a previous subscribe).

For the reconnect loop, I am using the presence of an error to decide wether to just restart Run() or also additionally re-subscribe. Maybe we can also get rid of that decision by simply always resubscribing? WDYT?

@GrimmiMeloni GrimmiMeloni self-assigned this Feb 6, 2025
@GrimmiMeloni GrimmiMeloni added the bug Something isn't working label Feb 6, 2025
@GrimmiMeloni GrimmiMeloni requested a review from andig February 6, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tibber: evcc hängt nach kurzzeitigem Ausfall von Tibber
1 participant