From 91044f0d9256bbfce7580105414a5deb2d589414 Mon Sep 17 00:00:00 2001 From: Kevin Mathy Date: Sun, 1 Nov 2015 22:00:17 +0100 Subject: [PATCH] Http.js shim modification corrections --- accessories/Http.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accessories/Http.js b/accessories/Http.js index a5475a7..96d8846 100644 --- a/accessories/Http.js +++ b/accessories/Http.js @@ -101,8 +101,7 @@ HttpAccessory.prototype = { switchService .getCharacteristic(Characteristic.On) - .on('get', this.getPowerOn.bind(this)) - .on('set', this.setPowerOn.bind(this)); + .on('set', this.setPowerState.bind(this)); return [switchService]; } else if (this.service == "Light") {