From 99ca32f752964c9ea90e3ca9463ab3a8d5540698 Mon Sep 17 00:00:00 2001 From: Dima Goltsman Date: Sat, 16 May 2020 18:47:34 +0300 Subject: [PATCH] fixing some remotes --- dist/remotes/lg/remote-html.js | 61 ++++++++++++++------------- dist/remotes/lg_new/remote-html.js | 67 +++++++++++++++--------------- dist/remotes/simple/remote-html.js | 57 ++++++++++++------------- 3 files changed, 94 insertions(+), 91 deletions(-) diff --git a/dist/remotes/lg/remote-html.js b/dist/remotes/lg/remote-html.js index 9ecd3e0..8b8c0a6 100755 --- a/dist/remotes/lg/remote-html.js +++ b/dist/remotes/lg/remote-html.js @@ -1,6 +1,7 @@ function getRemoteStyle_lg(config) { - const base_url = `/local/content-card-remote-control/${config.remote_template}`; + const template = config.remote_template; + const base_url = `/hacsfiles/generic-remote-control-card/remotes/${template}`; return ` ha-card{ @@ -354,45 +355,45 @@ function getRemoteHtml_lg(config){return `

${config.name}

-
+
diff --git a/dist/remotes/lg_new/remote-html.js b/dist/remotes/lg_new/remote-html.js index bda7103..6565aa8 100755 --- a/dist/remotes/lg_new/remote-html.js +++ b/dist/remotes/lg_new/remote-html.js @@ -1,6 +1,7 @@ function getRemoteStyle_lg_new(config) { - const base_url = `/local/content-card-remote-control/${config.remote_template}`; + const template = config.remote_template; + const base_url = `/hacsfiles/generic-remote-control-card/remotes/${template}`; return ` ha-card{ @@ -459,48 +460,48 @@ function getRemoteHtml_lg_new(config){return `

${config.name}

-
+
diff --git a/dist/remotes/simple/remote-html.js b/dist/remotes/simple/remote-html.js index 8038631..8b175d7 100644 --- a/dist/remotes/simple/remote-html.js +++ b/dist/remotes/simple/remote-html.js @@ -1,6 +1,7 @@ function getRemoteStyle_simple(config) { - const base_url = `/local/content-card-remote-control/${config.remote_template}`; + const template = config.remote_template; + const base_url = `/hacsfiles/generic-remote-control-card/remotes/${template}`; return ` ha-card{ @@ -328,47 +329,47 @@ function getRemoteHtml_simple(config){return `

${config.name}

-
+