homebridge-syntex-dynamic-platform
Advanced tools
Comparing version 1.0.8-b71 to 1.0.8-b72
{ | ||
"name": "homebridge-syntex-dynamic-platform", | ||
"version": "1.0.8-b71", | ||
"version": "1.0.8-b72", | ||
"description": "A Dynamic Platform Accessory", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -84,3 +84,3 @@ const DimmedBulbService = require('./dimmedBulb'); | ||
{ | ||
this.hue = this.tempState.hue = hue; | ||
this.hue = hue; | ||
@@ -107,3 +107,3 @@ this.setValue('hue', hue, verbose); | ||
{ | ||
this.saturation = this.tempState.saturation = saturation; | ||
this.saturation = saturation; | ||
@@ -120,3 +120,3 @@ this.setValue('saturation', saturation, verbose); | ||
{ | ||
if(state.value != null && (!super.hasState('value') || this.tempState.value != state.value)) | ||
if(state.value != null && (!super.hasState('value') || this.value != state.value)) | ||
{ | ||
@@ -128,3 +128,3 @@ this.tempState.value = state.value; | ||
if(state.hue != null && (!super.hasState('hue') || this.tempState.hue != state.hue)) | ||
if(state.hue != null && (!super.hasState('hue') || this.hue != state.hue)) | ||
{ | ||
@@ -136,3 +136,3 @@ this.tempState.hue = state.hue; | ||
if(state.saturation != null && (!super.hasState('saturation') || this.tempState.saturation != state.saturation)) | ||
if(state.saturation != null && (!super.hasState('saturation') || this.saturation != state.saturation)) | ||
{ | ||
@@ -144,3 +144,3 @@ this.tempState.saturation = state.saturation; | ||
if(state.brightness != null && (!super.hasState('brightness') || this.tempState.brightness != state.brightness)) | ||
if(state.brightness != null && (!super.hasState('brightness') || this.brightness != state.brightness)) | ||
{ | ||
@@ -147,0 +147,0 @@ this.tempState.brightness = state.brightness; |
@@ -63,9 +63,2 @@ const LightBulbService = require('./lightBulb'); | ||
setState(value, callback, verbose) | ||
{ | ||
this.tempState.value = value; | ||
super.setState(value, callback, verbose); | ||
} | ||
getBrightness(callback, verbose = false) | ||
@@ -83,3 +76,3 @@ { | ||
{ | ||
this.brightness = this.tempState.brightness = brightness; | ||
this.brightness = brightness; | ||
@@ -96,3 +89,3 @@ this.setValue('brightness', brightness, verbose); | ||
{ | ||
if(state.value != null && (!super.hasState('value') || this.tempState.value != state.value)) | ||
if(state.value != null && (!super.hasState('value') || this.value != state.value)) | ||
{ | ||
@@ -104,3 +97,3 @@ this.tempState.value = state.value; | ||
if(state.brightness != null && (!super.hasState('brightness') || this.tempState.brightness != state.brightness)) | ||
if(state.brightness != null && (!super.hasState('brightness') || this.brightness != state.brightness)) | ||
{ | ||
@@ -107,0 +100,0 @@ this.tempState.brightness = state.brightness; |
@@ -89,9 +89,2 @@ const BaseService = require('../base'); | ||
setState(value, callback, verbose) | ||
{ | ||
this.tempState.value = value; | ||
super.setState(value, callback, verbose); | ||
} | ||
getRotationSpeed(callback, verbose = false) | ||
@@ -109,3 +102,3 @@ { | ||
{ | ||
this.speed = this.tempState.speed = speed; | ||
this.speed = speed; | ||
@@ -132,3 +125,3 @@ this.setValue('speed', speed, verbose); | ||
{ | ||
this.direction = this.tempState.direction = direction; | ||
this.direction = direction; | ||
@@ -145,3 +138,3 @@ this.setValue('direction', direction, verbose); | ||
{ | ||
if(state.value != null && (!super.hasState('value') || this.tempState.value != state.value)) | ||
if(state.value != null && (!super.hasState('value') || this.value != state.value)) | ||
{ | ||
@@ -153,3 +146,3 @@ this.tempState.value = state.value; | ||
if(state.speed != null && (!super.hasState('speed') || this.tempState.speed != state.speed)) | ||
if(state.speed != null && (!super.hasState('speed') || this.speed != state.speed)) | ||
{ | ||
@@ -161,3 +154,3 @@ this.tempState.speed = state.speed; | ||
if(state.direction != null && (!super.hasState('direction') || this.tempState.direction != state.direction)) | ||
if(state.direction != null && (!super.hasState('direction') || this.direction != state.direction)) | ||
{ | ||
@@ -164,0 +157,0 @@ this.tempState.direction = state.direction; |
@@ -80,9 +80,2 @@ const BaseService = require('../base'); | ||
setState(value, callback, verbose) | ||
{ | ||
this.tempState.value = value; | ||
super.setState(value, callback, verbose); | ||
} | ||
getTargetTemperature(callback, verbose = false) | ||
@@ -100,3 +93,3 @@ { | ||
{ | ||
this.target = this.tempState.target = target; | ||
this.target = target; | ||
@@ -123,3 +116,3 @@ this.setValue('target', target, verbose); | ||
{ | ||
this.state = this.tempState.state = state; | ||
this.state = state; | ||
@@ -146,3 +139,3 @@ this.setValue('state', state, verbose); | ||
{ | ||
this.mode = this.tempState.mode = mode; | ||
this.mode = mode; | ||
@@ -159,3 +152,3 @@ this.setValue('mode', mode, verbose); | ||
{ | ||
if(state.value != null && (!super.hasState('value') || this.tempState.value != state.value)) | ||
if(state.value != null && (!super.hasState('value') || this.value != state.value)) | ||
{ | ||
@@ -167,3 +160,3 @@ this.tempState.value = state.value; | ||
if(state.target != null && (!super.hasState('target') || this.tempState.target != state.target)) | ||
if(state.target != null && (!super.hasState('target') || this.target != state.target)) | ||
{ | ||
@@ -175,3 +168,3 @@ this.tempState.target = state.target; | ||
if(state.state != null && (!super.hasState('state') || this.tempState.state != state.state)) | ||
if(state.state != null && (!super.hasState('state') || this.state != state.state)) | ||
{ | ||
@@ -183,3 +176,3 @@ this.tempState.state = state.state; | ||
if(state.mode != null && (!super.hasState('mode') || this.tempState.mode != state.mode)) | ||
if(state.mode != null && (!super.hasState('mode') || this.mode != state.mode)) | ||
{ | ||
@@ -186,0 +179,0 @@ this.tempState.mode = state.mode; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89926
2660