Skip to content

fix for log in Deep Standby#16

Open
reimerp wants to merge 1 commit intofbradyirl:masterfrom
reimerp:fix_log_deepstandby
Open

fix for log in Deep Standby#16
reimerp wants to merge 1 commit intofbradyirl:masterfrom
reimerp:fix_log_deepstandby

Conversation

@reimerp
Copy link

@reimerp reimerp commented Oct 5, 2022

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.

Copy link

@nldroid nldroid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

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