diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e25730..466e48c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v4.9.1 + rev: v4.15.1 hooks: - id: commitizen stages: [commit-msg] @@ -28,7 +28,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-poetry/poetry - rev: 2.2.1 + rev: 2.4.1 hooks: - id: poetry-check - repo: https://github.com/pre-commit/mirrors-prettier @@ -37,20 +37,20 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.3 + rev: v0.15.12 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.9.0 + rev: 26.3.1 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v2.0.0 hooks: - id: mypy additional_dependencies: [] diff --git a/src/leaone_ble/parser.py b/src/leaone_ble/parser.py index 4c1d597..e3766c5 100644 --- a/src/leaone_ble/parser.py +++ b/src/leaone_ble/parser.py @@ -85,7 +85,7 @@ def _start_update(self, service_info: BluetoothServiceInfoBleak) -> None: + changed_manufacturer_data[last_id] ) xvalue = data[1:9] - (frame_cnt, weight, impedance, _control, stabilized_byte) = UNPACK_DATA(xvalue) + frame_cnt, weight, impedance, _control, stabilized_byte = UNPACK_DATA(xvalue) self.set_precision(2) packet_id = frame_cnt << 8 | stabilized_byte self.update_predefined_sensor(SensorLibrary.PACKET_ID__NONE, packet_id)