From 3188efac5f4b2b35816cba9e2d82f6a6fd5e3c32 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 27 Jan 2018 17:44:19 +0100 Subject: [PATCH] fix typo --- src/HueColorBulbItem.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HueColorBulbItem.ts b/src/HueColorBulbItem.ts index 53a31da..54a15d4 100644 --- a/src/HueColorBulbItem.ts +++ b/src/HueColorBulbItem.ts @@ -80,17 +80,17 @@ export class HueColorBulbItem extends AHomegearItem { case this.brightTopic: this.bright = parseFloat(payload) mqttHandler.send(this.brightFeedbackTopic, `${this.bright}`) - mqttHandler.send(this.brightActionTopic, `${this.bright} * 2.54`) + mqttHandler.send(this.brightActionTopic, `${this.bright * 2.54}`) break case this.hueTopic: this.hue = parseFloat(payload) mqttHandler.send(this.hueFeedbackTopic, `${this.hue}`) - mqttHandler.send(this.hueActionTopic, `${this.hue} * 65535.0 / 360.0`) + mqttHandler.send(this.hueActionTopic, `${this.hue * 65535.0 / 360.0}`) break case this.saturationTopic: this.saturation = parseFloat(payload) mqttHandler.send(this.saturationFeedbackTopic, `${this.saturation}`) - mqttHandler.send(this.saturationActionTopic, `${this.saturation} * 2.54`) + mqttHandler.send(this.saturationActionTopic, `${this.saturation * 2.54}`) break case this.colorTemperatureTopic: this.colorTemperature = parseInt(payload)