@@ -341,7 +341,7 @@ export class CeilingLight extends deviceBase {
341341 this . debugLog ( 'openAPIRefreshStatus' )
342342 try {
343343 const response = await this . deviceRefreshStatus ( )
344- const deviceStatus : any = response . body
344+ const deviceStatus : any = response
345345 this . debugLog ( `statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
346346 if ( await this . successfulStatusCodes ( deviceStatus ) ) {
347347 this . debugSuccessLog ( `statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
@@ -483,7 +483,7 @@ export class CeilingLight extends deviceBase {
483483 this . debugLog ( `SwitchBot OpenAPI bodyChange: ${ JSON . stringify ( bodyChange ) } ` )
484484 try {
485485 const response = await this . pushChangeRequest ( bodyChange )
486- const deviceStatus : any = response . body
486+ const deviceStatus : any = response
487487 this . debugLog ( `statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
488488 if ( await this . successfulStatusCodes ( deviceStatus ) ) {
489489 this . debugSuccessLog ( `statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
@@ -515,7 +515,7 @@ export class CeilingLight extends deviceBase {
515515 this . debugLog ( `(pushHueSaturationChanges) SwitchBot OpenAPI bodyChange: ${ JSON . stringify ( bodyChange ) } ` )
516516 try {
517517 const response = await this . pushChangeRequest ( bodyChange )
518- const deviceStatus : any = response . body
518+ const deviceStatus : any = response
519519 this . debugLog ( `(pushHueSaturationChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
520520 if ( await this . successfulStatusCodes ( deviceStatus ) ) {
521521 this . debugSuccessLog ( `(pushHueSaturationChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
@@ -545,7 +545,7 @@ export class CeilingLight extends deviceBase {
545545 this . debugLog ( `(pushColorTemperatureChanges) SwitchBot OpenAPI bodyChange: ${ JSON . stringify ( bodyChange ) } ` )
546546 try {
547547 const response = await this . pushChangeRequest ( bodyChange )
548- const deviceStatus : any = response . body
548+ const deviceStatus : any = response
549549 this . debugLog ( `(pushColorTemperatureChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
550550 if ( await this . successfulStatusCodes ( deviceStatus ) ) {
551551 this . debugSuccessLog ( `(pushColorTemperatureChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
@@ -573,7 +573,7 @@ export class CeilingLight extends deviceBase {
573573 this . debugLog ( `(pushBrightnessChanges) SwitchBot OpenAPI bodyChange: ${ JSON . stringify ( bodyChange ) } ` )
574574 try {
575575 const response = await this . pushChangeRequest ( bodyChange )
576- const deviceStatus : any = response . body
576+ const deviceStatus : any = response
577577 this . debugLog ( `(pushBrightnessChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
578578 if ( await this . successfulStatusCodes ( deviceStatus ) ) {
579579 this . debugSuccessLog ( `(pushBrightnessChanges) statusCode: ${ deviceStatus . statusCode } , deviceStatus: ${ JSON . stringify ( deviceStatus ) } ` )
0 commit comments