From c858b7ebd48b32b40d5bf340a17bb369c1caba59 Mon Sep 17 00:00:00 2001 From: Cezar Pauxis Date: Tue, 12 Jul 2022 17:48:42 -0300 Subject: [PATCH] Fix slider_config Thanks @idoaflalo (https://github.com/usernein/tv-card/issues/11) --- .gitignore | 1 + tv-card.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/tv-card.js b/tv-card.js index ecd90a9..6a2749a 100644 --- a/tv-card.js +++ b/tv-card.js @@ -115,7 +115,7 @@ class TVCardServices extends LitElement { let slider_config = { "type": "custom:my-slider", - "entity": "media_player.tv", + "entity": this._config.entity, "height": "50px", "mainSliderColor": "white", "secondarySliderColor": "rgb(60, 60, 60)",