Skip to content

Commit

Permalink
fix(dingz): missed request change in refactoring
Browse files Browse the repository at this point in the history
- fixes #151, thanks @simonnelli for reporting it
  • Loading branch information
johannrichard committed Nov 30, 2020
1 parent 0c7e719 commit acc63d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dingzAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1462,9 +1462,7 @@ export class DingzAccessory extends DingzDaBaseAccessory {
private async getDeviceMotion(): Promise<DingzMotionData> {
const getMotionEndpoint = '/api/v1/motion';
return await this.request
.get(getMotionEndpoint, {
returnBody: true,
} as AxiosRequestConfig)
.get(getMotionEndpoint)
.then((response) => {
return response.data;
})
Expand Down

0 comments on commit acc63d0

Please sign in to comment.