Skip to content

Commit

Permalink
Fix lint issues (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Aug 6, 2024
1 parent 23c8231 commit 47f793f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ repos:
args:
- --safe
- --quiet
files: ^((components|esphome|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings==1.5.0
- pydocstyle==5.1.1
files: ^(components|esphome|tests)/.+\.py$
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions scripts/extract-frame-from-btsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def append_values(
current_packet = value
if index_of_value + 1 < len(values):
for value_to_append in values[index_of_value + 1 :]:
if (
value_to_append.startswith(start_value)
or value_to_append.startswith("aa:55")
): ##55:aa:eb:90 start of the next frame or "aa:55" command response??
# 55:aa:eb:90 start of the next frame or "aa:55" command response??
if value_to_append.startswith(
start_value
) or value_to_append.startswith("aa:55"):
list_of_frame_values.append("".join(current_packet))
break
else:
Expand Down

0 comments on commit 47f793f

Please sign in to comment.