From 7d5caae96d13fae4ed244536ffece8f8024791a4 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 25 Aug 2015 10:46:57 -0700 Subject: [PATCH] Add the hue characteristics for all lamps, as we're trying to handle this in some way now --- accessories/MiLight.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/accessories/MiLight.js b/accessories/MiLight.js index dacd671..9ab18f6 100644 --- a/accessories/MiLight.js +++ b/accessories/MiLight.js @@ -104,11 +104,9 @@ MiLight.prototype = { .addCharacteristic(new Characteristic.Brightness()) .on('set', this.setBrightness.bind(this)); - if (this.type == "rgbw" || this.type == "rgb") { - lightbulbService - .addCharacteristic(new Characteristic.Hue()) - .on('set', this.setHue.bind(this)); - } + lightbulbService + .addCharacteristic(new Characteristic.Hue()) + .on('set', this.setHue.bind(this)); return [informationService, lightbulbService]; }