mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-03 22:04:23 +01:00
clean up
This commit is contained in:
@@ -208,7 +208,9 @@ WinkAccessory.prototype = {
|
|||||||
designedMaxLength: 255
|
designedMaxLength: 255
|
||||||
},{
|
},{
|
||||||
cType: types.POWER_STATE_CTYPE,
|
cType: types.POWER_STATE_CTYPE,
|
||||||
onUpdate: function(value) { that.setPowerState(value); },
|
onUpdate: function(value) {
|
||||||
|
that.setPowerState(value);
|
||||||
|
},
|
||||||
onRead: function(callback) {
|
onRead: function(callback) {
|
||||||
that.getPowerState(function(powerState){
|
that.getPowerState(function(powerState){
|
||||||
callback(powerState);
|
callback(powerState);
|
||||||
@@ -223,7 +225,9 @@ WinkAccessory.prototype = {
|
|||||||
designedMaxLength: 1
|
designedMaxLength: 1
|
||||||
},{
|
},{
|
||||||
cType: types.BRIGHTNESS_CTYPE,
|
cType: types.BRIGHTNESS_CTYPE,
|
||||||
onUpdate: function(value) { that.setBrightness(value); },
|
onUpdate: function(value) {
|
||||||
|
that.setBrightness(value);
|
||||||
|
},
|
||||||
onRead: function(callback) {
|
onRead: function(callback) {
|
||||||
that.getBrightness(function(level){
|
that.getBrightness(function(level){
|
||||||
callback(level);
|
callback(level);
|
||||||
|
|||||||
Reference in New Issue
Block a user