Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 77ccfbd

Browse files
zweckjfrenck
authored andcommitted
Fix: Unhandled NoneType sessions in jellyfin (home-assistant#147659)
1 parent 4977ee4 commit 77ccfbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎homeassistant/components/jellyfin/coordinator.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ async def _async_update_data(self) -> dict[str, dict[str, Any]]:
5454
self.api_client.jellyfin.sessions
5555
)
5656

57+
if sessions is None:
58+
return {}
59+
5760
sessions_by_id: dict[str, dict[str, Any]] = {
5861
session["Id"]: session
5962
for session in sessions

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /