Skip to content

Commit

Permalink
chore(pre-commit.ci): pre-commit autoupdate (#183)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and bdraco authored Dec 28, 2024
1 parent f35790e commit dd07c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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: []
Expand Down
2 changes: 1 addition & 1 deletion src/bluetooth_adapters/systems/linux_hci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd07c68

Please sign in to comment.