homebridge-fordpass
Advanced tools
Comparing version 1.3.1-test.0 to 1.3.1-test.1
@@ -47,3 +47,3 @@ "use strict"; | ||
const switchService = fordAccessory.createService(hap.Service.Switch); | ||
const batteryService = fordAccessory.createService(hap.Service.BatteryService, 'Fuel Level'); | ||
const batteryService = fordAccessory.createService(hap.Service.Battery, 'Fuel Level'); | ||
lockService.setCharacteristic(hap.Characteristic.LockCurrentState, defaultState); | ||
@@ -138,3 +138,6 @@ lockService | ||
var _c; | ||
const level = ((_c = vehicle === null || vehicle === void 0 ? void 0 : vehicle.info) === null || _c === void 0 ? void 0 : _c.fuel.fuelLevel) || 100; | ||
let level = ((_c = vehicle === null || vehicle === void 0 ? void 0 : vehicle.info) === null || _c === void 0 ? void 0 : _c.fuel.fuelLevel) || 100; | ||
if (level > 100) { | ||
level = 100; | ||
} | ||
callback(undefined, level); | ||
@@ -141,0 +144,0 @@ const status = yield vehicle.status(); |
{ | ||
"displayName": "Homebridge FordPass", | ||
"name": "homebridge-fordpass", | ||
"version": "1.3.1-test.0", | ||
"version": "1.3.1-test.1", | ||
"description": "Fordpass plugin for homebridge: https://homebridge.io/", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
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
84645
575