Skip to content

Commit

Permalink
Fix traceback if no accounts found that list does not have items
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Feb 6, 2021
1 parent 4c4eea4 commit b1d144d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymyq/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Define a version constant."""
__version__ = '3.0.1'
__version__ = '3.0.2'
2 changes: 1 addition & 1 deletion pymyq/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ async def update_device_info(self, for_account: str = None) -> None:

if self.accounts is None:
_LOGGER.debug(f"No accounts found")
self.devices = []
self.devices = {}
accounts = {}
else:
accounts = self.accounts
Expand Down

0 comments on commit b1d144d

Please sign in to comment.