Skip to content

Commit

Permalink
Merge pull request #73 from abn/fix-typo
Browse files Browse the repository at this point in the history
api: fix typo in getEnergyIQConsumptionDetails name
  • Loading branch information
mattdavis90 authored Oct 28, 2024
2 parents 4a2e439 + 91506d5 commit 5dfb6c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export class Tado {
return this.apiCall(`https://acme.tado.com/v1/homes/${home_id}/airComfort?${location}`);
}

async EnergyIQConsumptionDetails(
async getEnergyIQConsumptionDetails(
home_id: number,
month: number,
year: number,
Expand Down
2 changes: 1 addition & 1 deletion test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ describe("High-level API tests", () => {
.reply(200, eneryIQConsumptionDetails_response);

tado
.EnergyIQConsumptionDetails(1907, 10, 2024)
.getEnergyIQConsumptionDetails(1907, 10, 2024)
.then((response) => {
expect(typeof response).to.equal("object");
expect(response.summary.averageDailyCostInCents).to.equal(164.7665);
Expand Down

0 comments on commit 5dfb6c4

Please sign in to comment.