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,8 +19982,10 @@ class PlayController {
} }
} }
try { try {
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'); 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 {
if (this.hass.states['sensor.kodi_media_sensor_search']) {
this.entityStates['sensor.kodi_media_sensor_search'] = await getState( this.entityStates['sensor.kodi_media_sensor_search'] = await getState(
this.hass, this.hass,
'sensor.kodi_media_sensor_search' 'sensor.kodi_media_sensor_search'
); );
}
} catch (err) { } catch (err) {
// pass // pass
} }

Loading…
Cancel
Save