2.0
Juraj Nyíri 3 years ago
parent 44c13c09c0
commit 6183f25d46

@ -20538,12 +20538,10 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.loading = true;
this.renderPage();
try {
if (this.plex) {
if (this.hassObj) {
this.playController = new PlayController(this.hassObj, this.plex, entity, this.runBefore, this.runAfter);
if (this.playController) {
await this.playController.init();
}
if (this.plex && this.hassObj) {
this.playController = new PlayController(this.hassObj, this.plex, entity, this.runBefore, this.runAfter);
if (this.playController) {
await this.playController.init();
}
await this.plex.init();
try {
@ -20620,7 +20618,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.render();
}
else {
throw Error('Plex not initialized.');
setTimeout(() => {
this.renderInitialData();
}, 250);
}
}
catch (err) {

@ -275,12 +275,10 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.loading = true;
this.renderPage();
try {
if (this.plex) {
if (this.hassObj) {
this.playController = new PlayController(this.hassObj, this.plex, entity, this.runBefore, this.runAfter);
if (this.playController) {
await this.playController.init();
}
if (this.plex && this.hassObj) {
this.playController = new PlayController(this.hassObj, this.plex, entity, this.runBefore, this.runAfter);
if (this.playController) {
await this.playController.init();
}
await this.plex.init();
@ -355,7 +353,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.loading = false;
this.render();
} else {
throw Error('Plex not initialized.');
setTimeout(() => {
this.renderInitialData();
}, 250);
}
} catch (err) {
this.error = `Plex server did not respond.<br/>Details of the error: ${escapeHtml(err.message)}`;

Loading…
Cancel
Save