We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a4a1b commit 9fde717Copy full SHA for 9fde717
tibber/__init__.py
@@ -2,6 +2,12 @@
2
DEMO_TOKEN = "5K4MVS-OjfWhK_4yrjOlFe1F6kJXPVf7eQYggo8ebAE"
3
API_ENDPOINT = "https://api.tibber.com/v1-beta/gql"
4
5
+# The event loop type causes problems on windows systems when exiting.
6
+import os
7
+import asyncio
8
+if os.name == "nt":
9
+ asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
10
+
11
# Import modules after defining constants to avoid circular import error.
12
from .account import Account
13
0 commit comments