home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.88k stars 30.95k forks source link

Core Jellyfin integration fails setup #130467

Open owingst opened 1 week ago

owingst commented 1 week ago

The problem

Jellyfin: 10.10.1 Core: 2024.11.1 Supervisor: 2024.11.2 Operating System: 13.2 Frontend: 20241106.2

I created a new issue and closed the one for remote entity. Fails at the same location every time. Thanks!

2024-11-11 10:40:44.815 DEBUG (MainThread) [homeassistant.components.jellyfin] Finished fetching jellyfin data in 0.070 seconds (success: True)
2024-11-11 10:40:47.459 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 365, 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'

What version of Home Assistant Core has the issue?

2024.11.1

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_jellyfin_2024-11-12T20-36-38.146Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-11 10:40:44.815 DEBUG (MainThread) [homeassistant.components.jellyfin] Finished fetching jellyfin data in 0.070 seconds (success: True)
2024-11-11 10:40:47.459 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 365, 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'


### Additional information

_No response_
home-assistant[bot] commented 1 week ago

Hey there @j-stienstra, @ctalkington, mind taking a look at this issue as it has been labeled with an integration (jellyfin) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `jellyfin` 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 jellyfin` 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)


jellyfin documentation jellyfin source (message by IssueLinks)