@switchbot/homebridge-switchbot 2.2.2-beta.6 → 2.2.2-beta.8

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.
@@ -204,9 +204,9 @@ export class Light {
204
204
 
205
205
  async allowPushOffChanges({ device }: { device: irdevice & irDevicesConfig; }): Promise<void> {
206
206
  if (device.allowPushOff) {
207
- this.allowPushOn = true;
207
+ this.allowPushOff = true;
208
208
  } else {
209
- this.allowPushOn = false;
209
+ this.allowPushOff = false;
210
210
  }
211
211
  }
212
212
 
@@ -201,9 +201,9 @@ export class Others {
201
201
 
202
202
  async allowPushOffChanges({ device }: { device: irdevice & irDevicesConfig; }): Promise<void> {
203
203
  if (device.allowPushOff) {
204
- this.allowPushOn = true;
204
+ this.allowPushOff = true;
205
205
  } else {
206
- this.allowPushOn = false;
206
+ this.allowPushOff = false;
207
207
  }
208
208
  }
209
209
 
@@ -419,9 +419,9 @@ export class TV {
419
419
 
420
420
  async allowPushOffChanges({ device }: { device: irdevice & irDevicesConfig; }): Promise<void> {
421
421
  if (device.allowPushOff) {
422
- this.allowPushOn = true;
422
+ this.allowPushOff = true;
423
423
  } else {
424
- this.allowPushOn = false;
424
+ this.allowPushOff = false;
425
425
  }
426
426
  }
427
427
 
@@ -182,9 +182,9 @@ export class VacuumCleaner {
182
182
 
183
183
  async allowPushOffChanges({ device }: { device: irdevice & irDevicesConfig; }): Promise<void> {
184
184
  if (device.allowPushOff) {
185
- this.allowPushOn = true;
185
+ this.allowPushOff = true;
186
186
  } else {
187
- this.allowPushOn = false;
187
+ this.allowPushOff = false;
188
188
  }
189
189
  }
190
190
 
@@ -190,9 +190,9 @@ export class WaterHeater {
190
190
 
191
191
  async allowPushOffChanges({ device }: { device: irdevice & irDevicesConfig; }): Promise<void> {
192
192
  if (device.allowPushOff) {
193
- this.allowPushOn = true;
193
+ this.allowPushOff = true;
194
194
  } else {
195
- this.allowPushOn = false;
195
+ this.allowPushOff = false;
196
196
  }
197
197
  }
198
198