hoffmation-base 2.20.0-beta.3 → 2.20.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,7 +126,6 @@ class OwnGoveeDevice {
|
|
|
126
126
|
* @inheritDoc
|
|
127
127
|
*/
|
|
128
128
|
setLight(pValue, timeout = -1, force, brightness = -1, _transitionTime, color = '', colorTemp = -1) {
|
|
129
|
-
var _a;
|
|
130
129
|
if (pValue && brightness === -1 && this.brightness < 10) {
|
|
131
130
|
brightness = 10;
|
|
132
131
|
}
|
|
@@ -161,7 +160,6 @@ class OwnGoveeDevice {
|
|
|
161
160
|
else {
|
|
162
161
|
this.turnOff();
|
|
163
162
|
}
|
|
164
|
-
(_a = this.device) === null || _a === void 0 ? void 0 : _a.actions.setOn();
|
|
165
163
|
if (timeout > -1 && !dontBlock) {
|
|
166
164
|
this.blockAutomationHandler.disableAutomatic(timeout, models_1.CollisionSolving.overrideIfGreater);
|
|
167
165
|
}
|
|
@@ -205,9 +203,6 @@ class OwnGoveeDevice {
|
|
|
205
203
|
}
|
|
206
204
|
turnOff() {
|
|
207
205
|
var _a;
|
|
208
|
-
if (!this.on) {
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
206
|
(_a = this.device) === null || _a === void 0 ? void 0 : _a.actions.setOff().then(() => {
|
|
212
207
|
this.log(models_1.LogLevel.Debug, `Govee turned off`, log_service_1.LogDebugType.SetActuator);
|
|
213
208
|
}).catch((error) => {
|