Skip to content

Commit

Permalink
fix: removed accountNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Mar 9, 2023
1 parent d8a1e34 commit dfab85e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/southern_company_api/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/southern_company_api/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit dfab85e

Please sign in to comment.