From d4df3b93ce0bc620f31592d61a136919c02d0226 Mon Sep 17 00:00:00 2001 From: villhellm Date: Fri, 25 Jan 2019 14:19:57 -0800 Subject: [PATCH] remote config entry is now an entity id --- roku-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roku-card.js b/roku-card.js index 56be6fd..397828c 100644 --- a/roku-card.js +++ b/roku-card.js @@ -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 }); }