Description
The problem
After restart, seeing this error in logs..
ERROR (MainThread) [homeassistant.components.media_player] Error while setting up jellyfin platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/src/homeassistant/homeassistant/components/jellyfin/media_player.py", line 46, in async_setup_entry
handle_coordinator_update()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/components/jellyfin/media_player.py", line 40, in handle_coordinator_update
entity: MediaPlayerEntity = JellyfinMediaPlayer(coordinator, session_id)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/jellyfin/media_player.py", line 60, in init
super().init(coordinator, session_id)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/jellyfin/entity.py", line 47, in init
self.device_name: str = self.session_data["DeviceName"]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'DeviceName'
I also found a comment on a possible related issue...
Receiving below error after latest HA Core update with the Jellyfin Integration.
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:234
First occurred: 3:25:59 PM (9 occurrences)
Last logged: 3:56:35 PMDetected code that calls async_forward_entry_setup for integration jellyfin with title: jellyfin and entry_id: XXXXXXXX, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1, please report this issue.
Core: 2025.1.4
Supervisor: 2024.12.3
Operating System: 14.2
Frontend: 20250109.2
What version of Home Assistant Core has the issue?
2025.1.4
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
Jellyfin
Link to integration documentation on our website
https://www.home-assistant.io/integrations/jellyfin/
Diagnostics information
home-assistant_2025-01-30T17-37-05.611Z.log
Example YAML snippet
Anything in the logs that might be useful for us?
Just the error pasted above.
Additional information
No response