From 8be5561d1979e54b9232eb59b3a115d397657066 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Mon, 1 Oct 2018 10:56:08 +0200 Subject: [PATCH] Remove turn_off from brightness slider (#1715) --- .../more-info/controls/more-info-light.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/dialogs/more-info/controls/more-info-light.js b/src/dialogs/more-info/controls/more-info-light.js index 5d4028c964..6b88fc569a 100644 --- a/src/dialogs/more-info/controls/more-info-light.js +++ b/src/dialogs/more-info/controls/more-info-light.js @@ -93,7 +93,7 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) {
- +
@@ -221,16 +221,10 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) { if (isNaN(bri)) return; - if (bri === 0) { - this.hass.callService('light', 'turn_off', { - entity_id: this.stateObj.entity_id, - }); - } else { - this.hass.callService('light', 'turn_on', { - entity_id: this.stateObj.entity_id, - brightness: bri, - }); - } + this.hass.callService('light', 'turn_on', { + entity_id: this.stateObj.entity_id, + brightness: bri, + }); } ctSliderChanged(ev) {