Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DTZ005 #251

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ ignore = [
"C901",
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"DTZ005",
"EM101",
"EM102",
"FBT002",
Expand Down
4 changes: 2 additions & 2 deletions roombapy/roomba.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import threading
import time
from collections.abc import Mapping
from datetime import datetime
from datetime import datetime, timezone

import orjson

Expand Down Expand Up @@ -219,7 +219,7 @@ def send_command(self, command, params=None):
self.log.debug("Send command: %s", command)
roomba_command = {
"command": command,
"time": int(datetime.timestamp(datetime.now())),
"time": int(datetime.timestamp(datetime.now(tz=timezone.utc))),
"initiator": "localApp",
}
roomba_command.update(params)
Expand Down