@switchbot/homebridge-switchbot
Advanced tools
Comparing version 0.0.2-beta.5 to 0.0.2-beta.6
@@ -24,2 +24,3 @@ /// <reference types="node" /> | ||
scanDuration: any; | ||
ScanDuration: number; | ||
constructor(platform: SwitchBotPlatform, accessory: PlatformAccessory, device: device); | ||
@@ -26,0 +27,0 @@ /** |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.On = false; | ||
this.ScanDuration = this.platform.config.options.refreshRate; | ||
if (!this.platform.config.options?.bot?.switch) { | ||
@@ -21,0 +22,0 @@ this.OutletInUse = true; |
@@ -17,2 +17,3 @@ "use strict"; | ||
this.PositionState = this.platform.Characteristic.PositionState.STOPPED; | ||
this.ScanDuration = this.platform.config.options.refreshRate; | ||
if (this.platform.config.options?.ble?.includes(this.device.deviceId)) { | ||
@@ -19,0 +20,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires |
@@ -29,2 +29,3 @@ import { Service, PlatformAccessory, CharacteristicValue } from 'homebridge'; | ||
BLEHumidity: any; | ||
ScanDuration: number; | ||
constructor(platform: SwitchBotPlatform, accessory: PlatformAccessory, device: device); | ||
@@ -31,0 +32,0 @@ /** |
@@ -23,2 +23,3 @@ "use strict"; | ||
this.CurrentTemperature = 0; | ||
this.ScanDuration = this.platform.config.options.refreshRate; | ||
if (this.platform.config.options?.ble?.includes(this.device.deviceId)) { | ||
@@ -25,0 +26,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires |
{ | ||
"displayName": "Homebridge SwitchBot", | ||
"name": "@switchbot/homebridge-switchbot", | ||
"version": "0.0.2-beta.5", | ||
"version": "0.0.2-beta.6", | ||
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.", | ||
@@ -52,3 +52,3 @@ "author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)", | ||
"rxjs": "^7.3.0", | ||
"node-switchbot": "1.0.4", | ||
"node-switchbot": "0.2.0", | ||
"@abandonware/noble": "^1.9.2-14", | ||
@@ -55,0 +55,0 @@ "@homebridge/plugin-ui-utils": "0.0.19" |
@@ -26,2 +26,3 @@ import { Service, PlatformAccessory, CharacteristicValue, HAPStatus } from 'homebridge'; | ||
scanDuration: any; | ||
ScanDuration: number; | ||
@@ -35,2 +36,3 @@ constructor( | ||
this.On = false; | ||
this.ScanDuration = this.platform.config.options!.refreshRate!; | ||
if (!this.platform.config.options?.bot?.switch) { | ||
@@ -37,0 +39,0 @@ this.OutletInUse = true; |
@@ -46,2 +46,3 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
this.PositionState = this.platform.Characteristic.PositionState.STOPPED; | ||
this.ScanDuration = this.platform.config.options!.refreshRate!; | ||
if (this.platform.config.options?.ble?.includes(this.device.deviceId!)) { | ||
@@ -48,0 +49,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires |
@@ -31,2 +31,3 @@ import { Service, PlatformAccessory, Units, CharacteristicValue, HAPStatus } from 'homebridge'; | ||
BLEHumidity: any; | ||
ScanDuration: number; | ||
@@ -44,2 +45,3 @@ constructor( | ||
this.CurrentTemperature = 0; | ||
this.ScanDuration = this.platform.config.options!.refreshRate!; | ||
if (this.platform.config.options?.ble?.includes(this.device.deviceId!)) { | ||
@@ -46,0 +48,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
919881
10937
+ Addednode-switchbot@0.2.0(transitive)
- Removednode-switchbot@1.0.4(transitive)
Updatednode-switchbot@0.2.0