|
|
@ -736,7 +736,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
|
|
|
|
|
|
|
setConfig = (config: any): void => {
|
|
|
|
setConfig = (config: any): void => {
|
|
|
|
this.plexProtocol = 'http';
|
|
|
|
this.plexProtocol = 'http';
|
|
|
|
if (config.entity.length === 0) {
|
|
|
|
if (!config.entity || config.entity.length === 0) {
|
|
|
|
throw new Error('You need to define at least one entity');
|
|
|
|
throw new Error('You need to define at least one entity');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!config.token) {
|
|
|
|
if (!config.token) {
|
|
|
|