From 52fa5969b8e9713b088f91f56894f76ce34c6e85 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 18 Aug 2024 14:54:20 +1000 Subject: [PATCH] Fixes --- src/vehicle-services/lock.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/vehicle-services/lock.ts b/src/vehicle-services/lock.ts index 9c64135..f399a45 100644 --- a/src/vehicle-services/lock.ts +++ b/src/vehicle-services/lock.ts @@ -20,21 +20,21 @@ export class LockService extends BaseService { await this.parent.wakeUpAndWait().then(() => value ? this.parent.vehicle - .door_lock() - //.then(() => wait()) - .then(() => currentState.updateValue(value)) - .catch((e) => - this.log.error(`${this.name} vehicle door_lock failed: ${e}`), - ) + .door_lock() + //.then(() => wait()) + .then(() => currentState.updateValue(value)) + .catch((e) => + this.log.error(`${this.name} vehicle door_lock failed: ${e}`), + ) : this.parent.vehicle - .door_unlock() - //.then(() => wait()) - .then(() => currentState.updateValue(value)) - .catch((e) => - this.log.error( - `${this.name} vehicle door_unlock failed: ${e}`, - ), + .door_unlock() + //.then(() => wait()) + .then(() => currentState.updateValue(value)) + .catch((e) => + this.log.error( + `${this.name} vehicle door_unlock failed: ${e}`, ), + ), ); });