From dfab85e65d9b37c104745b240ca44ee3e247c35e Mon Sep 17 00:00:00 2001 From: conway220 Date: Thu, 9 Mar 2023 14:41:45 -0500 Subject: [PATCH] fix: removed accountNumber --- src/southern_company_api/account.py | 3 --- src/southern_company_api/parser.py | 1 - 2 files changed, 4 deletions(-) diff --git a/src/southern_company_api/account.py b/src/southern_company_api/account.py index 7def87b..72fd4ea 100644 --- a/src/southern_company_api/account.py +++ b/src/southern_company_api/account.py @@ -100,7 +100,6 @@ async def get_daily_data( """This is not really tested yet.""" headers = {"Authorization": f"bearer {jwt}"} params = { - "accountNumber": self.number, "startDate": start_date.strftime("%m/%d/%Y 12:00:00 AM"), "endDate": end_date.strftime("%m/%d/%Y 11:59:59 PM"), "OPCO": self.company.name, @@ -178,7 +177,6 @@ async def get_hourly_data( # Needs to check if the data already exist in self.hourly_data to avoid making an unneeded call. headers = {"Authorization": f"bearer {jwt}"} params = { - "accountNumber": self.number, "startDate": start_date.strftime("%m/%d/%Y %H:%M:%S %p"), "endDate": end_date.strftime("%m/%d/%Y %H:%M:%S %p"), "OPCO": self.company.name, @@ -235,7 +233,6 @@ async def get_month_data(self, jwt: str) -> MonthlyUsage: today = datetime.datetime.now() first_of_month = today.replace(day=1, hour=0, minute=0, second=0, microsecond=0) params = { - "accountNumber": self.number, "startDate": first_of_month.strftime("%m/%d/%Y 12:00:00 AM"), "endDate": today.strftime("%m/%d/%Y 11:59:59 PM"), "OPCO": self.company.name, diff --git a/src/southern_company_api/parser.py b/src/southern_company_api/parser.py index 9b812df..4b38d77 100644 --- a/src/southern_company_api/parser.py +++ b/src/southern_company_api/parser.py @@ -143,7 +143,6 @@ async def _get_sc_web_token(self) -> str: async def _get_southern_jwt_cookie(self) -> str: # update to use property - await self.authenticate() if await self.sc is None: raise CantReachSouthernCompany("Sc token cannot be refreshed") data = {"ScWebToken": self._sc}