homebridge-fordpass
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -5,2 +5,3 @@ "use strict"; | ||
const fordpass_connection_1 = require("./fordpass-connection"); | ||
const accessory_1 = require("./accessory"); | ||
let hap; | ||
@@ -34,16 +35,7 @@ let Accessory; | ||
const vehicle = new fordpass_1.Vehicle(accessory.context.name, accessory.context.vin, this.config, this.log); | ||
const oldLockService = accessory.getService(hap.Service.LockMechanism); | ||
if (oldLockService) { | ||
this.log.debug(`Existing lock found for ${accessory.displayName}. Removing...`); | ||
accessory.removeService(oldLockService); | ||
} | ||
const oldSwitchService = accessory.getService(hap.Service.Switch); | ||
if (oldSwitchService) { | ||
this.log.debug(`Existing switch found for ${accessory.displayName}. Removing...`); | ||
accessory.removeService(oldSwitchService); | ||
} | ||
const fordAccessory = new accessory_1.FordpassAccessory(accessory); | ||
// Create Lock service | ||
const defaultState = 1; | ||
const lockService = new hap.Service.LockMechanism(); | ||
const switchService = new hap.Service.Switch(); | ||
const lockService = fordAccessory.createService(hap.Service.LockMechanism); | ||
const switchService = fordAccessory.createService(hap.Service.Switch); | ||
lockService.setCharacteristic(hap.Characteristic.LockCurrentState, defaultState); | ||
@@ -81,3 +73,2 @@ lockService | ||
}); | ||
accessory.addService(lockService); | ||
switchService | ||
@@ -113,3 +104,2 @@ .setCharacteristic(hap.Characteristic.On, false) | ||
}); | ||
accessory.addService(switchService); | ||
this.vehicles.push(vehicle); | ||
@@ -116,0 +106,0 @@ this.accessories.push(accessory); |
{ | ||
"displayName": "Homebridge FordPass", | ||
"name": "homebridge-fordpass", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Fordpass plugin for homebridge: https://homebridge.io/", | ||
@@ -57,3 +57,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"axios": "^0.19.2" | ||
"axios": "^0.20.0" | ||
}, | ||
@@ -63,3 +63,3 @@ "devDependencies": { | ||
"@types/node": "^14.0.22", | ||
"@typescript-eslint/eslint-plugin": "^3.6.0", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^3.6.0", | ||
@@ -66,0 +66,0 @@ "eslint": "^7.4.0", |
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
71260
14
425
+ Addedaxios@0.20.0(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.19.2(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@^0.20.0