Skip to content

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiğit Topcu committed May 3, 2024
1 parent 47e00f1 commit 64e02de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/dreame_vacuum/dreame/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import json
import base64
import hmac
import time, locale, datetime
import time, locale
import tzlocal
import requests
from datetime import datetime
from typing import Any, Dict, Optional, Tuple
from .exceptions import DeviceException
from typing import Any, Optional, Tuple
Expand Down Expand Up @@ -64,7 +65,7 @@ def __init__(self, username: str, password: str, country: str) -> None:
self._fail_count = 0
self._connected = False
try:
timezone = datetime.datetime.now(tzlocal.get_localzone()).strftime("%z")
timezone = datetime.now(tzlocal.get_localzone()).strftime("%z")
timezone = "GMT{0}:{1}".format(timezone[:-2], timezone[-2:])
except:
timezone = "GMT+00:00"
Expand Down

0 comments on commit 64e02de

Please sign in to comment.