|
|
@ -19858,15 +19858,29 @@ class PlayController {
|
|
|
|
const entityVal = value;
|
|
|
|
const entityVal = value;
|
|
|
|
if (lodash.isArray(entityVal)) {
|
|
|
|
if (lodash.isArray(entityVal)) {
|
|
|
|
for (const entity of entityVal) {
|
|
|
|
for (const entity of entityVal) {
|
|
|
|
|
|
|
|
if (!lodash.isNil(this.hass.states[entity])) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
// eslint-disable-next-line no-await-in-loop
|
|
|
|
// eslint-disable-next-line no-await-in-loop
|
|
|
|
this.entityStates[entity] = await getState(this.hass, entity);
|
|
|
|
this.entityStates[entity] = await getState(this.hass, entity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (err) {
|
|
|
|
|
|
|
|
// pass
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (!lodash.isNil(this.hass.states[entityVal])) {
|
|
|
|
// eslint-disable-next-line no-await-in-loop
|
|
|
|
// eslint-disable-next-line no-await-in-loop
|
|
|
|
this.entityStates[entityVal] = await getState(this.hass, entityVal);
|
|
|
|
this.entityStates[entityVal] = await getState(this.hass, entityVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (err) {
|
|
|
|
|
|
|
|
// pass
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
}
|
|
|
|