Open
Conversation
nldroid
reviewed
Oct 17, 2022
nldroid
left a comment
There was a problem hiding this comment.
I came here to look if i could find a solution for this poblem but you already fixed it. Thanks. fbradyirl, can you merge this and make sure a new release will come available?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This module is used inside homeassistant. If a previously discovered devive is entering DeepStandby and you don't want to wakeup the device again, the device is discovered frequently (by calling statusinfo) and this blows up the logs:
ERROR (SyncWorker_0) [openwebif.api] There was a connection error calling http://xxxx:80/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='xxxx', port=80): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x64b94b38>: Failed to establish a new connection: [Errno 111] Connection refused'))You can configure logging for this module but than you'll loose other important logs as well.
There is an error reported in HA (home-assistant/core#46796) but closed thru inactivity and since this module is independent I opened it here and did a quickfix for that.
I think the problem lies in _call_api (api.py) L632 url is called hich is causing the log. Later (which is not called due to the error) in L648 the offline state is checked and set, but it is too late.