core: Sony Bravia TV Integration throws an error

The problem

Every time I click on the media browser button there’s an unknown error. No further information is given in the error dialog.

What version of Home Assistant Core has the issue?

2023.4.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sony Bravia TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/braviatv

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 165, in send_req
    response = await self._session.post(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 894, in start
    with self._timer:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1223, in websocket_browse_media
    payload = await player.async_browse_media(media_content_type, media_content_id)
  File "/usr/src/homeassistant/homeassistant/components/braviatv/media_player.py", line 144, in async_browse_media
    await self.coordinator.async_update_sources()
  File "/usr/src/homeassistant/homeassistant/components/braviatv/coordinator.py", line 213, in async_update_sources
    channels = await self.client.get_content_list_all("tv")
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 426, in get_content_list_all
    resp = await self.get_content_list_full(source)
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 414, in get_content_list_full
    total = await self.get_content_count(source)
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 391, in get_content_count
    resp = await self.send_rest_req(
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 261, in send_rest_req
    resp = await self.send_req(
  File "/usr/local/lib/python3.10/site-packages/pybravia/client.py", line 197, in send_req
    raise BraviaConnectionTimeout from err
pybravia.exceptions.BraviaConnectionTimeout

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

it is slow in my case.

14.123045 14.127906 14.545912 14.305727 14.014703 14.272531 13.900466 14.797398 14.042389 13.701182 14.410728 14.410584 13.893082 14.541877 15.319271 14.370288 13.997011 14.444766 14.982524 13.575431