mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Voice assistants config: Filter unavailable assists (#23637)
Filter unavailable assists from num of assist devices.
This commit is contained in:
parent
f75f4b9733
commit
c6aec2db7d
@ -84,7 +84,9 @@ export class AssistPref extends LitElement {
|
|||||||
this._preferred = pipelines.preferred_pipeline;
|
this._preferred = pipelines.preferred_pipeline;
|
||||||
});
|
});
|
||||||
this._pipelineEntitiesCount = Object.values(this.hass.entities).filter(
|
this._pipelineEntitiesCount = Object.values(this.hass.entities).filter(
|
||||||
(entity) => computeDomain(entity.entity_id) === "assist_satellite"
|
(entity) =>
|
||||||
|
computeDomain(entity.entity_id) === "assist_satellite" &&
|
||||||
|
this.hass.states[entity.entity_id].state !== "unavailable"
|
||||||
).length;
|
).length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user