We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910321d commit 4127db8Copy full SHA for 4127db8
1 file changed
roborock/cli.py
@@ -27,6 +27,7 @@
27
import functools
28
import json
29
import logging
30
+import sys
31
import threading
32
from collections.abc import Callable
33
from dataclasses import asdict, dataclass
@@ -55,6 +56,9 @@
55
56
57
_LOGGER = logging.getLogger(__name__)
58
59
+if sys.platform == "win32":
60
+ asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
61
+
62
63
def dump_json(obj: Any) -> Any:
64
"""Dump an object as JSON."""
0 commit comments