Skip to content

Commit

Permalink
Merge pull request #6 from Villhellm/master
Browse files Browse the repository at this point in the history
remote config entry is now an entity id
  • Loading branch information
iantrich authored Jan 25, 2019
2 parents 211324e + d4df3b9 commit e884af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roku-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ class RokuCard extends LitElement {
}

handleActionClick(e) {
let remote = this._config.remote ? this._config.remote : this._config.entity.split(".")[1];
let remote = this._config.remote ? this._config.remote : "remote." + this._config.entity.split(".")[1];
this.hass.callService("remote", "send_command", {
entity_id: "remote." + remote,
entity_id: remote,
command: e.currentTarget.action
});
}
Expand Down

0 comments on commit e884af0

Please sign in to comment.