|
|
@ -19489,12 +19489,12 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
|
|
|
|
return event;
|
|
|
|
return event;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.valueUpdated = () => {
|
|
|
|
this.valueUpdated = () => {
|
|
|
|
if (this.loaded) {
|
|
|
|
|
|
|
|
const originalConfig = lodash.clone(this.config);
|
|
|
|
const originalConfig = lodash.clone(this.config);
|
|
|
|
this.config.protocol = this.protocol.value;
|
|
|
|
this.config.protocol = this.protocol.value;
|
|
|
|
this.config.ip = this.ip.value;
|
|
|
|
this.config.ip = this.ip.value;
|
|
|
|
this.config.token = this.token.value;
|
|
|
|
this.config.token = this.token.value;
|
|
|
|
this.config.port = this.port.value;
|
|
|
|
this.config.port = this.port.value;
|
|
|
|
|
|
|
|
if (this.loaded) {
|
|
|
|
if (!this.config.entity) {
|
|
|
|
if (!this.config.entity) {
|
|
|
|
this.config.entity = [];
|
|
|
|
this.config.entity = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -19551,10 +19551,10 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
|
|
|
|
this.config.runBefore = this.runBefore.value;
|
|
|
|
this.config.runBefore = this.runBefore.value;
|
|
|
|
this.config.runAfter = this.runAfter.value;
|
|
|
|
this.config.runAfter = this.runAfter.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!lodash.isEqual(this.config, originalConfig)) {
|
|
|
|
if (!lodash.isEqual(this.config, originalConfig)) {
|
|
|
|
this.fireEvent(this, 'config-changed', { config: this.config });
|
|
|
|
this.fireEvent(this, 'config-changed', { config: this.config });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.render = async () => {
|
|
|
|
this.render = async () => {
|
|
|
|
const addDropdownItem = (text) => {
|
|
|
|
const addDropdownItem = (text) => {
|
|
|
|