Skip to content

Commit

Permalink
Make power_action optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pathofleastresistor committed May 21, 2023
1 parent badb3ad commit ffc9bdb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions polr-android-tv-remote-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PolrAndroidTvRemoteCard extends LitElement {
this._entity_id = config["entity_id"];

if (!config.apps) {
throw new Error("app must be specified");
throw new Error("apps must be specified");
}
this._disneyplus = config.apps.includes("disneyplus");
this._hbomax = config.apps.includes("hbomax");
Expand All @@ -40,9 +40,6 @@ class PolrAndroidTvRemoteCard extends LitElement {
this._prime = config.apps.includes("prime");
this._youtube = config.apps.includes("youtube");

if (!config.power_action) {
throw new Error("power_action must be specified");
}
this._power_action = config.power_action;

this._title = config.title;
Expand Down

0 comments on commit ffc9bdb

Please sign in to comment.