diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1580f100..6ea32349 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,6 @@ repos: args: - --safe - --quiet - files: ^((components|esphome|script|tests)/.+)?[^/]+\.py$ - repo: https://github.com/PyCQA/flake8 rev: 7.1.0 hooks: @@ -30,7 +29,6 @@ repos: 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: diff --git a/scripts/extract-frame-from-btsnoop.py b/scripts/extract-frame-from-btsnoop.py index a06efd7f..6981d116 100644 --- a/scripts/extract-frame-from-btsnoop.py +++ b/scripts/extract-frame-from-btsnoop.py @@ -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: