Skip to content

Commit 4bfaba6

Browse files
authored
Update fast-search-card.js
1 parent a97adee commit 4bfaba6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

dist/fast-search-card.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8135,6 +8135,11 @@ class FastSearchCard extends HTMLElement {
81358135

81368136
// Timer = keine Wochentage oder leere Wochentage-Array
81378137
const isTimer = !schedule.weekdays || schedule.weekdays.length === 0;
8138+
8139+
// DEBUG: Zeige alle relevanten Schedules
8140+
if (belongsToEntity) {
8141+
console.log(`🔍 TIMER DEBUG - Schedule: ${schedule.name}, weekdays: ${JSON.stringify(schedule.weekdays)}, isTimer: ${isTimer}`);
8142+
}
81388143

81398144
return belongsToEntity && isTimer;
81408145
});
@@ -10762,9 +10767,12 @@ class FastSearchCard extends HTMLElement {
1076210767
// Zeitplan = hat Wochentage definiert (nicht leer)
1076310768
const weekdays = schedule.attributes.weekdays || [];
1076410769
const isSchedule = weekdays.length > 0;
10765-
10766-
console.log(`🔍 Schedule ${schedule.entity_id}: entities=${JSON.stringify(entities)}, weekdays=${JSON.stringify(weekdays)}, hasMatch=${hasMatch}, isSchedule=${isSchedule}`);
10767-
10770+
10771+
// DEBUG: Zeige alle relevanten Schedules
10772+
if (hasMatch) {
10773+
console.log(`🔍 ZEITPLAN DEBUG - Schedule: ${schedule.attributes.friendly_name}, weekdays: ${JSON.stringify(weekdays)}, isSchedule: ${isSchedule}`);
10774+
}
10775+
1076810776
return hasMatch && isSchedule;
1076910777
});
1077010778

0 commit comments

Comments
 (0)