From c653d726e14589ba6f5d6c1af0e005766866296c Mon Sep 17 00:00:00 2001 From: Ian Craig Date: Sun, 27 Feb 2022 21:28:04 +0000 Subject: [PATCH] Add config to hide LED button --- fan-xiaomi.js | 68 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/fan-xiaomi.js b/fan-xiaomi.js index 0246be2..00d458b 100644 --- a/fan-xiaomi.js +++ b/fan-xiaomi.js @@ -676,7 +676,7 @@ LED activeElement.classList.remove('active') } activeElement = fanboxa.querySelector('.var-led') - if (this.supportedAttributes.led) { + if (this.supportedAttributes.led && !this.config.hide_led_button) { if (led) { if (activeElement.classList.contains('active') === false) { activeElement.classList.add('active') @@ -836,6 +836,9 @@ class ContentCardEditor extends LitElement { } render() { return html` +
- - - -
-
- - - -
-
- - - -
-
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
` }