Comments (14)
@Fatalmose this should be resolved after 2024.6.4 is released and you upgrade to that version.
from core.
I'm having the same problem and I'm also using core 2024.6.1.
The same is also the case for core 2024.6.0.
Hereafter the log concerning the issue:
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 1308, in websocket_browse_media
payload = await player.async_browse_media(media_content_type, media_content_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 776, in async_browse_media
return await media_browser.async_browse_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_browser.py", line 115, in async_browse_media
return await spotify.async_browse_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 181, in async_browse_media
or not isinstance(entry.runtime_data, HomeAssistantSpotifyData)
^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'HomeAssistantSpotifyData' is not defined
from core.
Please use the 👍 reaction on the inital post, instead of these "same here" comments, thx 👍
i'm on a business trip this week, so i can check it earliest the week after
from core.
This looks like it's caused by #117037 where the import of HomeAssistantSpotifyData
was moved behind an if TYPE_CHECKING
guard. However it can't be simply imported because that would lead to a circular import.
Created #119747 as a workaround for this, but I do not have a Spotify account so I was unable to fully test the fix.
from core.
Hey there @frenck, @joostlek, mind taking a look at this issue as it has been labeled with an integration (spotify
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of spotify
can trigger bot actions by commenting:
@home-assistant close
Closes the issue.@home-assistant rename Awesome new title
Renames the issue.@home-assistant reopen
Reopen the issue.@home-assistant unassign spotify
Removes the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-information
Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-information
Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
spotify documentation
spotify source
(message by IssueLinks)
from core.
same issue here. Added the integration today.
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 1308, in websocket_browse_media payload = await player.async_browse_media(media_content_type, media_content_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 776, in async_browse_media return await media_browser.async_browse_media( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sonos/media_browser.py", line 115, in async_browse_media return await spotify.async_browse_media( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 181, in async_browse_media or not isinstance(entry.runtime_data, HomeAssistantSpotifyData) ^^^^^^^^^^^^^^^^^^^^^^^^ NameError: name 'HomeAssistantSpotifyData' is not defined
furthermore I did not find /usr/src/homeassistant/homeassistant/components/spotify/browse_media.py
from core.
cc @mib1185
from core.
Same issue after update to 2024.6.1.
from core.
i have the same problem with 2024.6.2
from core.
Same problem for me.
Since the newest update an unknown error shows up…
from core.
Looks like this was caused by #118106
Changing to PEP 695 type alias breaks the isinstance check in
(hope this helps... I can read enough python to see where the problem is, but don't know enough to know what the fix should be, bar reverting the change).
from core.
from core.
from core.
from core.
Related Issues (20)
- 503 Error from Meteorologisk institutt (Met.no) integration HOT 3
- Roborock integration: euiot.roborock.com:443 Name has no usable address HOT 1
- Reolink integration issue after 2024.7.x upgrade HOT 7
- Hounter Douglas Luxaflex Bottom-Up/Top-Down shades cannot update in parallel HOT 3
- Roller shutters show incorrect status since version 2024.7.2
- Airzone Cloud install HOT 3
- MQTT statestream filter HOT 1
- Pandora integration has blocking call to sleep inside the event loop HOT 1
- Python 3.12.4 and SWITCHBOT HOT 2
- Iqvia Internal Server Error Giving up _async_request(...) after 1 tries HOT 3
- Z-Wave JS Firmware Update Causes Duplicate Entity IDs
- Device Config Creep HOT 1
- Google Generative AI Doesn't work with custom_sentences HOT 2
- KNX expose of lock status does not trigger on state change HOT 1
- Bring integration shows error for new accounts HOT 1
- Shelly Gen3 devices (PM1 and 1 Mini) randomly go unavailable HOT 1
- Viessmann ViCare Integration Not Showing All Entities
- Offset in weather forecast HOT 2
- Long-term stats drop on power loss HOT 1
- Sensibo does not expose attribute for current hvac mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.