From bed07354bf371e7bf75b8871f37e112fcfa04a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 8 May 2021 13:15:23 +0200 Subject: [PATCH] Fix: Eslint warning --- dist/plex-meets-homeassistant.js | 4 ++-- src/plex-meets-homeassistant.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index e98ec55..a1025f0 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19528,7 +19528,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { lodash.forEach(this.data[this.config.libraryName], (movieData) => { if (!this.maxCount || count < this.maxCount) { count += 1; - this.content.appendChild(this.getMovieElement(movieData, this.data.serverID)); + this.content.appendChild(this.getMovieElement(movieData)); } else { return true; @@ -19946,7 +19946,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } return 0; }; - this.getMovieElement = (data, serverID) => { + this.getMovieElement = (data) => { const thumbURL = `${this.plexProtocol}://${this.config.ip}:${this.config.port}/photo/:/transcode?width=${CSS_STYLE.expandedWidth}&height=${CSS_STYLE.expandedHeight}&minSize=1&upscale=1&url=${data.thumb}&X-Plex-Token=${this.config.token}`; const container = document.createElement('div'); container.className = 'container'; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index f81aacb..e82773e 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -199,7 +199,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { _.forEach(this.data[this.config.libraryName], (movieData: Record) => { if (!this.maxCount || count < this.maxCount) { count += 1; - this.content.appendChild(this.getMovieElement(movieData, this.data.serverID)); + this.content.appendChild(this.getMovieElement(movieData)); } else { return true; } @@ -667,7 +667,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { return 0; }; - getMovieElement = (data: any, serverID: string): HTMLDivElement => { + getMovieElement = (data: any): HTMLDivElement => { const thumbURL = `${this.plexProtocol}://${this.config.ip}:${this.config.port}/photo/:/transcode?width=${CSS_STYLE.expandedWidth}&height=${CSS_STYLE.expandedHeight}&minSize=1&upscale=1&url=${data.thumb}&X-Plex-Token=${this.config.token}`; const container = document.createElement('div');