File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments