This commit is contained in:
J. Nick Koston
2023-12-05 13:28:30 -10:00
parent 1494551405
commit 3355fed281

View File

@@ -62,9 +62,10 @@ class HomeAssistantBluetoothManager(BluetoothManager):
self._callback_index = BluetoothCallbackMatcherIndex() self._callback_index = BluetoothCallbackMatcherIndex()
self._cancel_logging_listener: CALLBACK_TYPE | None = None self._cancel_logging_listener: CALLBACK_TYPE | None = None
super().__init__(bluetooth_adapters, slot_manager) super().__init__(bluetooth_adapters, slot_manager)
self._async_logging_changed()
@hass_callback @hass_callback
def _async_logging_changed(self, event: Event) -> None: def _async_logging_changed(self, event: Event | None = None) -> None:
"""Handle logging change.""" """Handle logging change."""
self._debug = _LOGGER.isEnabledFor(logging.DEBUG) self._debug = _LOGGER.isEnabledFor(logging.DEBUG)