Skip to content

Commit

Permalink
more-info fallback to element entity ID if target is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Oct 23, 2024
1 parent acc74fa commit c29025d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/universal-remote-card.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "universal-remote-card",
"version": "4.1.0",
"version": "4.1.1",
"description": "Universal Remote Card",
"main": "./dist/universal-remote-card.min.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/classes/base-remote-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ export class BaseRemoteElement extends LitElement {
cancelable: true,
composed: true,
});
event.detail = { entityId: action.target?.entity_id };
event.detail = {
entityId: action.target?.entity_id ?? this.config.entity_id,
};
this.dispatchEvent(event);
}

Expand Down

0 comments on commit c29025d

Please sign in to comment.