Skip to content

Commit 70db2e2

Browse files
committed
Replace pytz by dateutil
1 parent 8b67852 commit 70db2e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugwise/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
# This way of importing aiohttp is because of patch/mocking in testing (aiohttp timeouts)
1010
from aiohttp import BasicAuth, ClientError, ClientResponse, ClientSession, ClientTimeout
11+
12+
# Time related
13+
from dateutil import tz
1114
from dateutil.parser import parse
1215
from defusedxml import ElementTree as etree
1316
from munch import Munch
14-
15-
# Time related
16-
import pytz
1717
from semver import VersionInfo
1818

1919
from .constants import (
@@ -1177,7 +1177,7 @@ def _last_used_schedule(
11771177
if not schedules:
11781178
return last_used # pragma: no cover
11791179

1180-
epoch = dt.datetime(1970, 1, 1, tzinfo=pytz.utc)
1180+
epoch = dt.datetime(1970, 1, 1, tzinfo=tz.tzutc())
11811181
schedules_dates: dict[str, float] = {}
11821182

11831183
for name in schedules:

0 commit comments

Comments
 (0)