diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 4eb4710..37e0e43 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19423,7 +19423,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } }, 200); } - if (this.plex) { + if (this.plex && data.childCount > 0) { this.seasonElemFreshlyLoaded = true; const seasonsData = await this.plex.getLibraryData(data.key.split('/')[3]); if (this.seasonsElem) { diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index b01abae..c601e1b 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -294,7 +294,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } }, 200); } - if (this.plex) { + if (this.plex && data.childCount > 0) { this.seasonElemFreshlyLoaded = true; const seasonsData = await this.plex.getLibraryData(data.key.split('/')[3]); if (this.seasonsElem) {