Skip to content

Commit

Permalink
fixed source launching bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Villhellm committed Jun 26, 2019
1 parent d43d8b2 commit 385c04b
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 385c04b

Please sign in to comment.