Fix #66: Properly initiate vlcTelnet entity

vlc_telnet
Juraj Nyíri 3 years ago
parent c0adda57f6
commit 2a8b87dd33

@ -353,11 +353,11 @@ class PlexMeetsHomeAssistant extends HTMLElement {
entityObj.inputText.push(entityInRegister.entity_id); entityObj.inputText.push(entityInRegister.entity_id);
break; break;
case 'vlc_telnet': case 'vlc_telnet':
if (_.isNil(entityObj.inputText)) { if (_.isNil(entityObj.vlcTelnet)) {
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
entityObj.inputText = []; entityObj.vlcTelnet = [];
} }
entityObj.inputText.push(entityInRegister.entity_id); entityObj.vlcTelnet.push(entityInRegister.entity_id);
break; break;
default: default:
console.error(`Entity ${entityInRegister.entity_id} is not supported.`); console.error(`Entity ${entityInRegister.entity_id} is not supported.`);

Loading…
Cancel
Save