Fix play media action not shown (#19187)

This commit is contained in:
Bram Kragten
2023-12-29 18:56:15 +01:00
committed by GitHub
parent c25baf25ad
commit 442cce1574

View File

@@ -198,7 +198,7 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
): ListItem[] => {
if (type === "action" && isService(group)) {
const result = this._services(localize, services, manifests, group);
if (group === "service_media_player") {
if (group === `${SERVICE_PREFIX}media_player`) {
result.unshift(this._convertToItem("play_media", {}, type, localize));
}
return result;