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

small improvments to make the integration more stable #11

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

hoffmann2002
Copy link

Hi,

i did a few changes to your code, to make it more stable/usable.

on detail:

  • if a box is not online and HA is restarting then the entity is missing because on HA start the call request will fail and therefore the entity will never added. if the box is back online, a HA restart is neccecary to get the entity available again
    this is fixed: call request is now in a try/except block
  • load_source was only called on HA start. this is. now trigged every time a box pwstate is changed from offline to online
    improvement
  • async_update -> pwstate will prevent creation of entity. if box is unreachable, powerstate_soup.find('e2instandby').renderContents() is thrown an error.
    try/except block will handle this behavior

hope you have time to test the changes.

Thanks

…dling call_request exceptions

timeout on webrequests added to end async_update within 10s (ha default)
reload sources, if enigma box become available again and not only on ha start
@cinzas
Copy link
Owner

cinzas commented Sep 22, 2024

Hi @hoffmann2002 ,

Thanks a lot for you contributions.

@cinzas cinzas merged commit a19d721 into cinzas:master Sep 22, 2024
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.

2 participants