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] 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)