Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle missing hci devices when enumerating adapters #129

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Apr 30, 2024

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/__init__.py", line 235, in async_setup
    await manager.async_setup()
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/manager.py", line 133, in async_setup
    await super().async_setup()
  File "src/habluetooth/manager.py", line 262, in async_setup
  File "src/habluetooth/manager.py", line 212, in _async_refresh_adapters
  File "/usr/local/lib/python3.12/site-packages/bluetooth_adapters/systems/linux.py", line 123, in adapters
    product = uart_device.product
              ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'product'

@bdraco bdraco merged commit 95759e7 into main Apr 30, 2024
15 checks passed
@bdraco bdraco deleted the guard_uart branch April 30, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant