Skip to content

Commit b1d144d

Browse files
committed
Fix traceback if no accounts found that list does not have items
1 parent 4c4eea4 commit b1d144d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymyq/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Define a version constant."""
2-
__version__ = '3.0.1'
2+
__version__ = '3.0.2'

pymyq/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ async def update_device_info(self, for_account: str = None) -> None:
615615

616616
if self.accounts is None:
617617
_LOGGER.debug(f"No accounts found")
618-
self.devices = []
618+
self.devices = {}
619619
accounts = {}
620620
else:
621621
accounts = self.accounts

0 commit comments

Comments
 (0)