Skip to content

Commit

Permalink
fix: made account not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Feb 8, 2023
1 parent 8ec7ec0 commit 22e6c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/southern_company_api/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def __init__(self, username: str, password: str):
self.jwt: typing.Optional[str] = None
self.sc: typing.Optional[str] = None
self.request_token: typing.Optional[str] = None
self._accounts: typing.Optional[List[Account]] = None
self._accounts: List[Account] = []

@property
def accounts(self) -> typing.Optional[List[Account]]:
def accounts(self) -> List[Account]:
return self._accounts

async def connect(self) -> None:
Expand Down

0 comments on commit 22e6c8b

Please sign in to comment.