alexmohr / media_player.sony

Custom component for Home Assistant to control Sony devices
Apache License 2.0
16 stars 8 forks source link

Support for 2023.6 and above (Python 3.11 support needed?) #35

Open robertwigley opened 1 year ago

robertwigley commented 1 year ago

I may have this wrong, but this integration appeared to break in 2023.6, so I am assuming it's the Python version upgrade to 3.11 that broke it. I may be one of a very small minority of people that use this integration, but it would be nice to get it working again.

Here are the errors that appear in the logs.

This error originated from a custom integration.

Logger: sonyapilib.device
Source: custom_components/sony/media_player.py:201
Integration: sony (documentation)
First occurred: 11:37:13 (4 occurrences)
Last logged: 11:37:27

HTTPError: HTTPConnectionPool(host='192.168.0.84', port=50202): Max retries exceeded with url: /appslist (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2da85d10>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
HTTPError: HTTPConnectionPool(host='192.168.0.84', port=52323): Max retries exceeded with url: /dmr.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f31cdd090>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
HTTPError: HTTPConnectionPool(host='192.168.0.84', port=50001): Max retries exceeded with url: /Ircc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7e5af57a50>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
failed to get device information: HTTPConnectionPool(host='192.168.0.84', port=50001): Max retries exceeded with url: /Ircc.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7e5af57a50>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
alexmohr commented 6 months ago

Doesn't look like a python error, but your device does not seem to be reachable?