Skip to content

Commit 1304474

Browse files
authored
Update fast-search-card.js
1 parent c961a47 commit 1304474

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dist/fast-search-card.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12411,15 +12411,15 @@ class FastSearchCard extends HTMLElement {
1241112411
console.log('🔍 Music Assistant services:', this._hass.services.music_assistant);
1241212412

1241312413
console.log('⏸️ Smart pausing player...');
12414-
12414+
1241512415
const pauseMethods = [
12416-
// Music Assistant spezifisch
12417-
{ service: 'music_assistant', action: 'media_pause', priority: 1 },
12416+
// Music Assistant - RICHTIGER Service-Name
12417+
{ service: 'music_assistant', action: 'pause', priority: 1 },
1241812418
// Standard Media Player
1241912419
{ service: 'media_player', action: 'media_pause', priority: 2 },
1242012420
// Fallback: Stop
1242112421
{ service: 'media_player', action: 'media_stop', priority: 3 }
12422-
];
12422+
];
1242312423

1242412424
for (const method of pauseMethods) {
1242512425
try {
@@ -12558,7 +12558,7 @@ class FastSearchCard extends HTMLElement {
1255812558

1255912559
// 🎯 Versuche verschiedene Resume-Methoden
1256012560
const resumeMethods = [
12561-
{ service: 'music_assistant', action: 'media_play' },
12561+
{ service: 'music_assistant', action: 'play' }, // GEÄNDERT
1256212562
{ service: 'media_player', action: 'media_play' },
1256312563
{ service: 'media_player', action: 'media_play_pause' }
1256412564
];

0 commit comments

Comments
 (0)