-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Configuration
Describe the bug
Bermuda not starting in the latest beta
Diagnostics
Home Assistant Config Bermuda.json
Logger: homeassistant.helpers.entity_platform
Source: helpers/entity_platform.py:505
First occurred: 19:28:53 (1 occurrence)
Last logged: 19:28:53
bermuda raises exception ConfigEntryNotReady in forwarded platform device_tracker; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
This error originated from a custom integration.
Logger: custom_components.bermuda
Source: helpers/update_coordinator.py:392
integration: Bermuda BLE Trilateration (documentation, issues)
First occurred: 19:28:53 (2 occurrences)
Last logged: 19:28:55
Unexpected error fetching bermuda data
Traceback (most recent call last):
File "/config/custom_components/bermuda/coordinator.py", line 612, in _get_or_create_device
return self.devices[mac]
~~~~~~~~~~~~^^^^^
KeyError: '2727f992ccb9828181f781b78cd4c2a1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 392, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/coordinator.py", line 620, in _async_update_data
self._async_update_data_internal()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/bermuda/coordinator.py", line 652, in _async_update_data_internal
self.update_metadevices()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/bermuda/coordinator.py", line 1091, in update_metadevices
self.discover_private_ble_metadevices()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/bermuda/coordinator.py", line 982, in discover_private_ble_metadevices
metadevice = self._get_or_create_device(_irk)
File "/config/custom_components/bermuda/coordinator.py", line 614, in _get_or_create_device
self.devices[mac] = device = BermudaDevice(mac, self)
~~~~~~~~~~~~~^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_device.py", line 145, in __init__
self._async_process_address_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/bermuda/bermuda_device.py", line 199, in _async_process_address_type
self._coordinator.irk_manager.register_irk_callback(self.async_handle_pble_callback, _irk_bytes)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 200, in register_irk_callback
self.add_irk(irk)
~~~~~~~~~~~~^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 52, in add_irk
macs.extend(
~~~~~~~~~~~^
macirk.mac
^^^^^^^^^^
...<4 lines>...
)
^
)
^
File "/config/custom_components/bermuda/bermuda_irk.py", line 57, in <genexpr>
and self._validate_mac_irk(macirk.mac, irk, cipher) not in IrkTypes.unresolved()
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 147, in _validate_mac_irk
self.fire_callbacks(irk, address)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 183, in fire_callbacks
bledevice = BLEDevice(mac, "", None, 0)
TypeError: BLEDevice.__init__() takes 4 positional arguments but 5 were given
Logger: homeassistant.components.bluetooth.manager
Source: components/bluetooth/manager.py:124
integration: Bluetooth (documentation, issues)
First occurred: 19:41:34 (2 occurrences)
Last logged: 19:52:58
Error in bluetooth callback
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/manager.py", line 124, in _discover_service_info
callback(service_info, BluetoothChange.ADVERTISEMENT)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/private_ble_device/coordinator.py", line 154, in _async_track_service_info
cb(service_info, change)
~~^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_device.py", line 566, in async_handle_pble_callback
self._coordinator.irk_manager.add_macirk(address, bytes.fromhex(self.address))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 105, in add_macirk
result = self.check_mac(address)
File "/config/custom_components/bermuda/bermuda_irk.py", line 100, in check_mac
return self._validate_mac(address)
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 122, in _validate_mac
result = self._validate_mac_irk(address, irk, cipher)
File "/config/custom_components/bermuda/bermuda_irk.py", line 147, in _validate_mac_irk
self.fire_callbacks(irk, address)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/config/custom_components/bermuda/bermuda_irk.py", line 183, in fire_callbacks
bledevice = BLEDevice(mac, "", None, 0)
TypeError: BLEDevice.__init__() takes 4 positional arguments but 5 were given
cogneato
Metadata
Metadata
Assignees
Labels
No labels