Skip to content

Commit 889f704

Browse files
authored
Update fast-search-card.js
1 parent 1d6af88 commit 889f704

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dist/fast-search-card.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4489,6 +4489,8 @@ class FastSearchCard extends HTMLElement {
44894489
flex-shrink: 0;
44904490
color: var(--text-secondary);
44914491
padding: 0;
4492+
position: absolute;
4493+
right: 0;
44924494
}
44934495

44944496
.favorite-button:hover {
@@ -7882,22 +7884,21 @@ class FastSearchCard extends HTMLElement {
78827884
this.setupCustomDetailTabs(item);
78837885
}
78847886

7885-
78867887
async handleFavoriteClick(item) {
78877888
try {
78887889
const favoriteLabel = await this.getFavoriteLabel();
78897890
const isFavorite = await this.isFavorite(item);
78907891

78917892
if (isFavorite) {
78927893
// Favorit entfernen
7893-
await this._hass.callService('label', 'remove', {
7894+
await this._hass.callService('homeassistant', 'remove_label', {
78947895
entity_id: item.id,
78957896
label_id: favoriteLabel
78967897
});
78977898
console.log('💔 Removed from favorites:', item.name);
78987899
} else {
78997900
// Als Favorit hinzufügen
7900-
await this._hass.callService('label', 'assign', {
7901+
await this._hass.callService('homeassistant', 'add_label', {
79017902
entity_id: item.id,
79027903
label_id: favoriteLabel
79037904
});

0 commit comments

Comments
 (0)