Skip to content

Commit 549641f

Browse files
committed
remove logic for custom action/icon default names as it makes customizing some touchpads and sliders more difficult
1 parent f0f09ec commit 549641f

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

dist/universal-remote-card.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/universal-remote-card-editor.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -427,27 +427,18 @@ export class UniversalRemoteCardEditor extends LitElement {
427427
case 3:
428428
entries = structuredClone(this.config.custom_icons) ?? [];
429429
entries.push({
430-
name: `custom_icon_${
431-
(this.config.custom_icons ?? []).length
432-
}`,
430+
name: '',
433431
path: '',
434432
});
435433
break;
436434
case 2:
437435
default: {
438436
const entryType = RemoteElementTypes[i];
439437
entries = structuredClone(this.config.custom_actions) ?? [];
440-
let name = entryType;
441-
const entriesOfType = this.config.custom_actions?.filter(
442-
(entry) => entry.type == entryType,
443-
);
444-
if (entriesOfType && entriesOfType.length) {
445-
name += `_${(this.config.custom_actions ?? []).length}`;
446-
}
447438

448439
entries.push({
449440
type: RemoteElementTypes[i],
450-
name: name,
441+
name: '',
451442
});
452443
break;
453444
}

0 commit comments

Comments
 (0)