From c9d670ae2b0de5b2aff622e7a48d0985f3041a18 Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Thu, 2 Nov 2023 22:47:09 -0500 Subject: [PATCH] Update platform.ts --- src/platform.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 20870c0..dacfe34 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -191,8 +191,11 @@ export class AugustPlatform implements DynamicPlatformPlugin { installId: this.config.credentials.installId, augustId: this.config.credentials.augustId, password: this.config.credentials.password, - countryCode: this.config.credentials.countryCode, }; + if (this.config.credentials.countryCode !== undefined) { + this.account['countryCode'] = this.config.credentials.countryCode; + this.warnLog(`countryCode: ${this.account.countryCode}`); + } if (this.config.credentials.apiKey !== undefined) { this.account['apiKey'] = this.config.credentials.apiKey; this.warnLog(`apiKey: ${this.account.apiKey}`);