Skip to content

Commit

Permalink
Merge pull request #14 from Villhellm/master
Browse files Browse the repository at this point in the history
Fixed source select bug
  • Loading branch information
iantrich authored Jul 10, 2019
2 parents c6a900d + 385c04b commit 28c0ec2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions roku-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ class RokuCard extends LitElement {
}

launchApp(e) {
this.hass.callService("media_player", "select_source", {
entity_id: this._config.entity,
source: e.currentTarget.value
});
if (e.currentTarget.value != "") {
this.hass.callService("media_player", "select_source", {
entity_id: this._config.entity,
source: e.currentTarget.value
});
}
}

handleActionClick(e) {
Expand Down

0 comments on commit 28c0ec2

Please sign in to comment.