From 2a8b87dd338c732e62071e73715a873ae28ee758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Tue, 4 Jan 2022 17:39:16 +0100 Subject: [PATCH] Fix #66: Properly initiate vlcTelnet entity --- src/plex-meets-homeassistant.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 36fb76f..8aaf2f5 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -353,11 +353,11 @@ class PlexMeetsHomeAssistant extends HTMLElement { entityObj.inputText.push(entityInRegister.entity_id); break; case 'vlc_telnet': - if (_.isNil(entityObj.inputText)) { + if (_.isNil(entityObj.vlcTelnet)) { // eslint-disable-next-line no-param-reassign - entityObj.inputText = []; + entityObj.vlcTelnet = []; } - entityObj.inputText.push(entityInRegister.entity_id); + entityObj.vlcTelnet.push(entityInRegister.entity_id); break; default: console.error(`Entity ${entityInRegister.entity_id} is not supported.`);