diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68c7232..6ae0db9 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.0.0 + rev: v4.1.0 hooks: - id: commitizen stages: [commit-msg] @@ -34,7 +34,7 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py37-plus] @@ -55,7 +55,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.0 hooks: - id: mypy additional_dependencies: [] diff --git a/src/bluetooth_adapters/systems/linux_hci.py b/src/bluetooth_adapters/systems/linux_hci.py index ae4ca1c..1f769fe 100644 --- a/src/bluetooth_adapters/systems/linux_hci.py +++ b/src/bluetooth_adapters/systems/linux_hci.py @@ -91,7 +91,7 @@ def get_adapters_from_hci() -> dict[int, dict[str, Any]]: dev = hci_dev_info() dev.dev_id = dev_req.dev_id ret = fcntl.ioctl(sock.fileno(), HCIGETDEVINFO, dev) - info = {str(k): getattr(dev, k) for k, v_ in dev._fields_} + info = {str(k): getattr(dev, k) for k, *v_ in dev._fields_} info["bdaddr"] = str(info["bdaddr"]) info["name"] = info["name"].decode() out[int(dev.dev_id)] = info