Fix #44: Infinite loop calling to PLEX_URL/api/states/sensor.kodi_media_sensor_search and getting 404 not found response

pull/47/head 3.1.1
Juraj Nyíri 3 years ago
parent 27eb76c964
commit a23435d873

@ -19982,7 +19982,9 @@ class PlayController {
} }
} }
try { try {
this.entityStates['sensor.kodi_media_sensor_search'] = await getState(this.hass, 'sensor.kodi_media_sensor_search'); if (this.hass.states['sensor.kodi_media_sensor_search']) {
this.entityStates['sensor.kodi_media_sensor_search'] = await getState(this.hass, 'sensor.kodi_media_sensor_search');
}
} }
catch (err) { catch (err) {
// pass // pass

@ -697,10 +697,12 @@ class PlayController {
} }
} }
try { try {
this.entityStates['sensor.kodi_media_sensor_search'] = await getState( if (this.hass.states['sensor.kodi_media_sensor_search']) {
this.hass, this.entityStates['sensor.kodi_media_sensor_search'] = await getState(
'sensor.kodi_media_sensor_search' this.hass,
); 'sensor.kodi_media_sensor_search'
);
}
} catch (err) { } catch (err) {
// pass // pass
} }

Loading…
Cancel
Save