From 0098c9cd91144576ce9c9f805d6e4803af0c11e3 Mon Sep 17 00:00:00 2001 From: JEMcats Date: Sun, 15 Sep 2024 14:05:09 -0400 Subject: [PATCH] Fix "not expecting 'query'" error --- tesla_fleet_api/energy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tesla_fleet_api/energy.py b/tesla_fleet_api/energy.py index a987d28..14fd6e9 100644 --- a/tesla_fleet_api/energy.py +++ b/tesla_fleet_api/energy.py @@ -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, @@ -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,