homebridge-http-base
Advanced tools
Comparing version 2.1.10 to 2.1.11
@@ -51,3 +51,3 @@ "use strict"; | ||
const hapCharacteristic = index_1.utils.getCharacteristic(this.service, characteristicName); | ||
let isBool = typeof hapCharacteristic.getDefaultValue() === "boolean"; | ||
let isBool = hapCharacteristic.props.format === "bool" /* BOOL */; | ||
const internalSubscriptionObject = { | ||
@@ -54,0 +54,0 @@ characteristic: characteristicName, |
{ | ||
"name": "homebridge-http-base", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"description": "Base and utils for homebridge-http devices", | ||
@@ -31,18 +31,18 @@ "license": "ISC", | ||
"async": "^3.2.0", | ||
"mqtt": "^4.2.5" | ||
"mqtt": "^4.2.6" | ||
}, | ||
"devDependencies": { | ||
"@types/async": "^3.2.4", | ||
"@types/async": "^3.2.5", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^10.17.55", | ||
"@types/request": "^2.48.5", | ||
"@types/jest": "^26.0.15", | ||
"@types/node": "^10.17.44", | ||
"chalk": "^4.1.0", | ||
"hap-nodejs": "^0.9.3", | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.4.4", | ||
"chalk": "^4.1.0", | ||
"hap-nodejs": "^0.8.2", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.5" | ||
"ts-jest": "^26.5.3", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import {Service} from "hap-nodejs"; | ||
import {Formats, Service} from "hap-nodejs"; | ||
import { | ||
@@ -94,3 +94,3 @@ CloseCallback, | ||
const hapCharacteristic = utils.getCharacteristic(this.service, characteristicName)!; | ||
let isBool = typeof hapCharacteristic.getDefaultValue() === "boolean"; | ||
let isBool = hapCharacteristic.props.format === Formats.BOOL; | ||
@@ -97,0 +97,0 @@ const internalSubscriptionObject: InternalMQTTSubscription = { |
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
150473
54
Updatedmqtt@^4.2.6