Skip to content

[Bug]: The component cannot run in HA #1235

Open
@junskr

Description

@junskr

What happened?

I have been using this component for a very long time. I am always grateful.
However, one day, an error suddenly appears saying that the component cannot be executed.
I tried rebooting the system, deleting the component, and reinstalling it. But it doesn't work with the same error message.
What can I do? The error message is as follows. Thanks.

[Version]

  • Home Assistant: 2023.9.1
  • Supervisor: 2023.08.3
  • Python: 3.11.5
  • aioblescan: 0.2.14
  • ble-monitor: 11.8.0 & 12.4.0

[keyword] AttributeError: 'BLEScanRequester' object has no attribute '_initialized'

error

Sensor type

ble

Relevant log output

Logger: root
Source: custom_components/ble_monitor/__init__.py:720
Integration: Passive BLE monitor (documentation, issues)
First occurred: 9:08:53 (28 occurrences)
Last logged: 9:35:39

Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/config/custom_components/ble_monitor/__init__.py", line 720, in run
    initialized_evt[hci] = getattr(btctrl[hci], "_initialized")
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'BLEScanRequester' object has no attribute '_initialized'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions