From 0293b2c0a8528004f1a98937824d81f899e82a91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 17:52:06 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v4.9.1 → v4.15.0](https://github.com/commitizen-tools/commitizen/compare/v4.9.1...v4.15.0) - [github.com/asottile/pyupgrade: v3.20.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.2) - [github.com/PyCQA/isort: 6.0.1 → 9.0.0a3](https://github.com/PyCQA/isort/compare/6.0.1...9.0.0a3) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.9.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.9.0...26.3.1) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.20.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.20.2) - [github.com/PyCQA/bandit: 1.8.6 → 1.9.4](https://github.com/PyCQA/bandit/compare/1.8.6...1.9.4) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d8ab6d..f063cfd 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.0 hooks: - id: commitizen stages: [commit-msg] @@ -34,20 +34,20 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 9.0.0a3 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 25.9.0 + - repo: https://github.com/psf/black-pre-commit-mirror + 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/PyCQA/flake8 @@ -55,12 +55,12 @@ repos: hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v1.20.2 hooks: - id: mypy additional_dependencies: [] - repo: https://github.com/PyCQA/bandit - rev: 1.8.6 + rev: 1.9.4 hooks: - id: bandit args: [-x, tests] From 6fcdc7bd24c51cbd4392854b6914f73e378b5123 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 17:53:33 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- src/bluemaestro_ble/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bluemaestro_ble/parser.py b/src/bluemaestro_ble/parser.py index fe3bbf4..7120315 100644 --- a/src/bluemaestro_ble/parser.py +++ b/src/bluemaestro_ble/parser.py @@ -69,12 +69,12 @@ def _start_update(self, service_info: BluetoothServiceInfoBleak) -> None: self.set_device_manufacturer("BlueMaestro") unpacked = device.unpack(data[1:14]) if device_id in [0x16, 0x17]: - (batt, time_interval, log_cnt, temp, humi, dew_point, mode) = unpacked + batt, time_interval, log_cnt, temp, humi, dew_point, mode = unpacked self.update_predefined_sensor( SensorLibrary.DEW_POINT__TEMP_CELSIUS, dew_point / 10 ) elif device_id == 0x1B: - (batt, time_interval, log_cnt, temp, humi, press, mode) = unpacked + batt, time_interval, log_cnt, temp, humi, press, mode = unpacked self.update_predefined_sensor(SensorLibrary.PRESSURE__MBAR, press / 10) self.update_predefined_sensor(SensorLibrary.BATTERY__PERCENTAGE, batt) self.update_predefined_sensor(SensorLibrary.TEMPERATURE__CELSIUS, temp / 10)