diff --git a/src/southern_company_api/parser.py b/src/southern_company_api/parser.py index d1bbbd6..8fd5589 100644 --- a/src/southern_company_api/parser.py +++ b/src/southern_company_api/parser.py @@ -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: