Skip to content

Commit

Permalink
Handle missing section ID for Plex clips (#51598)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlawren committed Jun 8, 2021
1 parent 6c2e452 commit de2dc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/plex/models.py
Expand Up @@ -78,7 +78,7 @@ def update_media(self, media):

if media.librarySectionID in SPECIAL_SECTIONS:
self.media_library_title = SPECIAL_SECTIONS[media.librarySectionID]
elif media.librarySectionID < 1:
elif media.librarySectionID and media.librarySectionID < 1:
self.media_library_title = UNKNOWN_SECTION
_LOGGER.warning(
"Unknown library section ID (%s) for title '%s', please create an issue",
Expand Down

0 comments on commit de2dc92

Please sign in to comment.