File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -10284,9 +10284,6 @@ class FastSearchCard extends HTMLElement {
1028410284
1028510285 async deleteTimer(timerId, entityId) {
1028610286 console.log(`🗑️ Lösche Timer ${timerId}`);
10287- if (!confirm('Diesen Timer wirklich löschen?')) {
10288- return;
10289- }
1029010287
1029110288 try {
1029210289 // KORREKTUR: Hole die Switch-Entity-ID
@@ -13679,18 +13676,16 @@ class FastSearchCard extends HTMLElement {
1367913676 const scheduleItem = btn.closest('.schedule-item');
1368013677 const scheduleEntityId = scheduleItem.dataset.entityId;
1368113678
13682- if (confirm('Zeitplan wirklich löschen?')) {
13683- try {
13684- await this._hass.callService('scheduler', 'remove', {
13685- entity_id: scheduleEntityId
13686- });
13687-
13688- // UI aktualisieren
13689- setTimeout(() => this.loadActiveSchedules(entityId), 500);
13690-
13691- } catch (error) {
13692- console.error('Fehler beim Löschen des Zeitplans:', error);
13693- }
13679+ try {
13680+ await this._hass.callService('scheduler', 'remove', {
13681+ entity_id: scheduleEntityId
13682+ });
13683+
13684+ // UI aktualisieren
13685+ setTimeout(() => this.loadActiveSchedules(entityId), 500);
13686+
13687+ } catch (error) {
13688+ console.error('Fehler beim Löschen des Zeitplans:', error);
1369413689 }
1369513690 });
1369613691 });
You can’t perform that action at this time.
0 commit comments