Skip to content

Commit 796700f

Browse files
committed
Fix DTZ003-error
1 parent 0c5f99b commit 796700f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ async def set_gateway_mode(self, mode: str) -> None:
871871
if mode not in self._gw_allowed_modes:
872872
raise PlugwiseError("Plugwise: invalid gateway mode.")
873873

874-
time_1 = dt.datetime.utcnow()
874+
time_1 = dt.datetime.now(dt.UTC)
875875
away_time = time_1.isoformat(timespec="milliseconds") + "Z"
876876
time_2 = str(dt.date.today() - dt.timedelta(1))
877877
vacation_time = time_2 + "T23:00:00.000Z"

0 commit comments

Comments
 (0)