Skip to content

Commit ae1ef93

Browse files
committed
Ruff linting
1 parent 412c009 commit ae1ef93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pyvesync/base_devices/vesyncbasedevice.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import inspect
66
import logging
77
from abc import ABC, abstractmethod
8+
from datetime import UTC
89
from datetime import datetime as dt
9-
from datetime import timezone
1010
from typing import TYPE_CHECKING, Any, Generic, TypeVar
1111

1212
import orjson
@@ -511,9 +511,7 @@ def __repr__(self) -> str:
511511

512512
def update_ts(self) -> None:
513513
"""Update last update timestamp as UTC timestamp."""
514-
self.last_update_ts = int(
515-
int(dt.now(tz=timezone.utc).timestamp())
516-
)
514+
self.last_update_ts = int(dt.now(tz=UTC).timestamp())
517515

518516
@staticmethod
519517
def __predicate(attr: Any) -> bool: # noqa: ANN401

0 commit comments

Comments
 (0)