mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix: Unhandled NoneType sessions in jellyfin (#147659)
This commit is contained in:
parent
78c2405e61
commit
58c434887e
@ -54,6 +54,9 @@ class JellyfinDataUpdateCoordinator(DataUpdateCoordinator[dict[str, dict[str, An
|
|||||||
self.api_client.jellyfin.sessions
|
self.api_client.jellyfin.sessions
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if sessions is None:
|
||||||
|
return {}
|
||||||
|
|
||||||
sessions_by_id: dict[str, dict[str, Any]] = {
|
sessions_by_id: dict[str, dict[str, Any]] = {
|
||||||
session["Id"]: session
|
session["Id"]: session
|
||||||
for session in sessions
|
for session in sessions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user