Skip to content

Commit b2aa367

Browse files
authored
Update fast-search-card.js
1 parent 2079f91 commit b2aa367

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

dist/fast-search-card.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10205,22 +10205,17 @@ class FastSearchCard extends HTMLElement {
1020510205

1020610206
// Climate Actions
1020710207
} else if (action.includes('24°C') || action.includes('Heizen')) {
10208-
// Direkt das SVG holen ohne über getClimateTimerPresets zu gehen
10209-
return this.getHvacModeSVG('heat', this.currentItem)
10210-
.replace(/width="[^"]*"/g, 'width="16"')
10211-
.replace(/height="[^"]*"/g, 'height="16"');
10208+
presetHTML = this.getClimateTimerPresets(this.currentDetailItem);
10209+
match = presetHTML.match(/data-action="heat_24"[^>]*>(.*?)<\/button>/s);
1021210210
} else if (action.includes('22°C') || action.includes('Kühlen')) {
10213-
return this.getHvacModeSVG('cool', this.currentItem)
10214-
.replace(/width="[^"]*"/g, 'width="16"')
10215-
.replace(/height="[^"]*"/g, 'height="16"');
10211+
presetHTML = this.getClimateTimerPresets(this.currentDetailItem);
10212+
match = presetHTML.match(/data-action="cool_22"[^>]*>(.*?)<\/button>/s);
1021610213
} else if (action.includes('Entfeuchten')) {
10217-
return this.getHvacModeSVG('dry', this.currentItem)
10218-
.replace(/width="[^"]*"/g, 'width="16"')
10219-
.replace(/height="[^"]*"/g, 'height="16"');
10214+
presetHTML = this.getClimateTimerPresets(this.currentDetailItem);
10215+
match = presetHTML.match(/data-action="dry_mode"[^>]*>(.*?)<\/button>/s);
1022010216
} else if (action.includes('Lüften')) {
10221-
return this.getHvacModeSVG('fan_only', this.currentItem)
10222-
.replace(/width="[^"]*"/g, 'width="16"')
10223-
.replace(/height="[^"]*"/g, 'height="16"');
10217+
presetHTML = this.getClimateTimerPresets(this.currentDetailItem);
10218+
match = presetHTML.match(/data-action="fan_only"[^>]*>(.*?)<\/button>/s);
1022410219

1022510220
// Cover Actions
1022610221
} else if (action.includes('Öffnen')) {

0 commit comments

Comments
 (0)