Skip to content

Commit

Permalink
Get demand control data as the last step
Browse files Browse the repository at this point in the history
To not risk that existing data cannot be retrieved anymore
  • Loading branch information
Matze2 committed Sep 28, 2024
1 parent 79afa3c commit 45f37d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DaikinAC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ export class DaikinAC {
if (this._updateCallback) this._updateCallback(err);
return;
}
this.getACDemandControl((err, _info) => {
this.getACSensorInfo((err, _info) => {
if (err) {
this.initUpdateTimeout();
if (this._updateCallback) this._updateCallback(err);
return;
}
this.getACSensorInfo((err, _info) => {
this.getACDemandControl((err, _info) => {
this.initUpdateTimeout();
if (this._updateCallback) this._updateCallback(err);
});
Expand Down

0 comments on commit 45f37d9

Please sign in to comment.