Skip to content

Commit e3406b7

Browse files
authored
Remove shared, mutable devices constructor parameter. (#149)
1 parent 43325de commit e3406b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymyq/account.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
class MyQAccount:
3030
"""Define an account."""
3131

32-
def __init__(self, api: "API", account_json: dict, devices: dict = {}) -> None:
32+
def __init__(self, api: "API", account_json: dict, devices: Optional[dict] = None) -> None:
3333

3434
self._api = api
3535
self.account_json = account_json
36+
if devices is None:
37+
devices = {}
3638
self._devices = devices
3739
self.last_state_update = None # type: Optional[datetime]
3840
self._update = asyncio.Lock() # type: asyncio.Lock

0 commit comments

Comments
 (0)