Skip to content

Commit 9e69d21

Browse files
Improve error handling and reconnect
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
1 parent b351751 commit 9e69d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tibber/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def __init__(self, url: str, access_token: str, user_agent: str) -> None:
368368
ping_interval=10,
369369
)
370370
self.reconnect_at: dt.datetime = dt.datetime.now() + dt.timedelta(seconds=90)
371-
self._timeout: int = 2
371+
self._timeout: int = 90
372372

373373
@property
374374
def running(self) -> bool:

0 commit comments

Comments
 (0)