Skip to content

Commit

Permalink
Fix "not expecting 'query'" error
Browse files Browse the repository at this point in the history
  • Loading branch information
JEMcats committed Sep 15, 2024
1 parent ad88fd3 commit 0098c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tesla_fleet_api/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def charge_history(
return await self._request(
Method.GET,
f"api/1/energy_sites/{energy_site_id}/telemetry_history",
query={
params={
"kind": kind,
"start_date": start_date,
"end_date": end_date,
Expand All @@ -84,7 +84,7 @@ async def energy_history(
return await self._request(
Method.GET,
f"api/1/energy_sites/{energy_site_id}/calendar_history",
query={
params={
"kind": kind,
"start_date": start_date,
"end_date": end_date,
Expand Down

0 comments on commit 0098c9c

Please sign in to comment.