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

Media - Cast - Dashboard: Unknown error #114914

Closed
Mika-999 opened this issue Apr 5, 2024 · 1 comment · Fixed by #114924
Closed

Media - Cast - Dashboard: Unknown error #114914

Mika-999 opened this issue Apr 5, 2024 · 1 comment · Fixed by #114924

Comments

@Mika-999
Copy link

Mika-999 commented Apr 5, 2024

The problem

I have been casting dashboard from Home Assistant to Google Nest Hub every day.
Yesterday I updated the Home Assistant Core to version 2024.4.0 since it was suggesting the update.
Today I found that Google Nest Hub was not showing dashboard and when I tried to go in Media - Dashboard where I could start casting the dashboard only I can see is the "Unknown error" message.
I would say that this is related to HA Core update, but who knows.

What version of Home Assistant Core has the issue?

core-2024.4.0

What was the last working version of Home Assistant Core?

previous version of core-2024.4.0, I would assume it was 2024.3.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Assistant WebSocket API

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/lovelace/cast.py:185
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 08:22:26 (3 occurrences)
Last logged: 08:22:48

[548378933696] Error handling message: Unknown error (unknown_error) Mika from 192.168.86.228 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1312, in websocket_browse_media
    payload = await player.async_browse_media(media_content_type, media_content_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 660, in async_browse_media
    browse_media = await platform.async_browse_media(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lovelace/cast.py", line 83, in async_browse_media
    info = await _get_dashboard_info(hass, url_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lovelace/cast.py", line 185, in _get_dashboard_info
    for idx, view in enumerate(config["views"]):
                               ~~~~~~^^^^^^^^^
KeyError: 'views'

Additional information

No response

@smarthomefamilyverrips
Copy link

Following

@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants