Skip to content

Commit 859ddb5

Browse files
committed
make sure we can use the connected property
1 parent e3afdb3 commit 859ddb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

velbusaio/module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ async def _cache(self) -> None:
243243

244244
def __getstate__(self) -> dict:
245245
d = self.__dict__
246-
self_dict = {k: d[k] for k in d if k != "_writer" and k != "_log"}
246+
self_dict = {
247+
k: d[k] for k in d if k != "_writer" and k != "_log" and k != "_controller"
248+
}
247249
return self_dict
248250

249251
def __setstate__(self, state: dict) -> None:

0 commit comments

Comments
 (0)