@@ -129,7 +129,7 @@ export class BluelinkCanada extends Bluelink {
129129 }
130130
131131 const error = `Login Failed: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
132- if ( this . config . debugLogging ) await this . logger . log ( error )
132+ if ( this . config . debugLogging ) this . logger . log ( error )
133133 return undefined
134134 }
135135
@@ -143,7 +143,7 @@ export class BluelinkCanada extends Bluelink {
143143 } )
144144 if ( ! this . requestResponseValid ( resp . resp , resp . json ) . valid ) {
145145 const error = `Failed to set car ${ id } : ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
146- if ( this . config . debugLogging ) await this . logger . log ( error )
146+ if ( this . config . debugLogging ) this . logger . log ( error )
147147 throw Error ( error )
148148 }
149149 }
@@ -177,7 +177,7 @@ export class BluelinkCanada extends Bluelink {
177177 }
178178 }
179179 const error = `Failed to retrieve vehicle list: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
180- if ( this . config . debugLogging ) await this . logger . log ( error )
180+ if ( this . config . debugLogging ) this . logger . log ( error )
181181 throw Error ( error )
182182 }
183183
@@ -270,7 +270,7 @@ export class BluelinkCanada extends Bluelink {
270270 }
271271
272272 const error = `Failed to retrieve vehicle status: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
273- if ( this . config . debugLogging ) await this . logger . log ( error )
273+ if ( this . config . debugLogging ) this . logger . log ( error )
274274 throw Error ( error )
275275 }
276276
@@ -289,7 +289,7 @@ export class BluelinkCanada extends Bluelink {
289289 return resp . json . result . pAuth
290290 }
291291 const error = `Failed to get auth code: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
292- if ( this . config . debugLogging ) await this . logger . log ( error )
292+ if ( this . config . debugLogging ) this . logger . log ( error )
293293 throw Error ( error )
294294 }
295295
@@ -314,7 +314,7 @@ export class BluelinkCanada extends Bluelink {
314314
315315 if ( ! this . requestResponseValid ( resp . resp , resp . json ) . valid ) {
316316 const error = `Failed to poll for command completion: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
317- if ( this . config . debugLogging ) await this . logger . log ( error )
317+ if ( this . config . debugLogging ) this . logger . log ( error )
318318 throw Error ( error )
319319 }
320320
@@ -366,7 +366,7 @@ export class BluelinkCanada extends Bluelink {
366366 return await this . pollForCommandCompletion ( id , authCode , transactionId )
367367 }
368368 const error = `Failed to send lockUnlock command: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
369- if ( this . config . debugLogging ) await this . logger . log ( error )
369+ if ( this . config . debugLogging ) this . logger . log ( error )
370370 throw Error ( error )
371371 }
372372
@@ -401,7 +401,7 @@ export class BluelinkCanada extends Bluelink {
401401 return await this . pollForCommandCompletion ( id , authCode , transactionId )
402402 }
403403 const error = `Failed to send charge command: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
404- if ( this . config . debugLogging ) await this . logger . log ( error )
404+ if ( this . config . debugLogging ) this . logger . log ( error )
405405 throw Error ( error )
406406 }
407407
@@ -446,7 +446,7 @@ export class BluelinkCanada extends Bluelink {
446446 return await this . pollForCommandCompletion ( id , authCode , transactionId )
447447 }
448448 const error = `Failed to send climateOff command: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
449- if ( this . config . debugLogging ) await this . logger . log ( error )
449+ if ( this . config . debugLogging ) this . logger . log ( error )
450450 throw Error ( error )
451451 }
452452
@@ -470,7 +470,7 @@ export class BluelinkCanada extends Bluelink {
470470 return await this . pollForCommandCompletion ( id , authCode , transactionId )
471471 }
472472 const error = `Failed to send climateOff command: ${ JSON . stringify ( resp . json ) } request ${ JSON . stringify ( this . debugLastRequest ) } `
473- if ( this . config . debugLogging ) await this . logger . log ( error )
473+ if ( this . config . debugLogging ) this . logger . log ( error )
474474 throw Error ( error )
475475 }
476476}
0 commit comments