|
| None | __init__ (self, HomeAssistant hass, IntegrationMatcher integration_matcher, BluetoothAdapters bluetooth_adapters, BluetoothStorage storage, BleakSlotManager slot_manager) |
| |
| None | async_rediscover_address (self, str address) |
| |
| Callable[[], None] | async_register_callback (self, BluetoothCallback callback, BluetoothCallbackMatcher|None matcher) |
| |
| CALLBACK_TYPE | async_register_scanner (self, BaseHaScanner scanner, int|None connection_slots=None) |
| |
| None | async_setup (self) |
| |
| None | async_stop (self, Event|None event=None) |
| |
Manage Bluetooth for Home Assistant.
Definition at line 43 of file manager.py.
◆ __init__()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
IntegrationMatcher |
integration_matcher, |
|
|
BluetoothAdapters |
bluetooth_adapters, |
|
|
BluetoothStorage |
storage, |
|
|
BleakSlotManager |
slot_manager |
|
) |
| |
Init bluetooth manager.
Definition at line 54 of file manager.py.
◆ _address_disappeared()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._address_disappeared |
( |
|
self, |
|
|
str |
address |
|
) |
| |
|
private |
Dismiss all discoveries for the given address.
Definition at line 138 of file manager.py.
◆ _async_logging_changed()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._async_logging_changed |
( |
|
self, |
|
|
Event | None |
event = None |
|
) |
| |
|
private |
Handle logging change.
Definition at line 72 of file manager.py.
◆ _async_save_scanner_histories()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._async_save_scanner_histories |
( |
|
self | ) |
|
|
private |
Save the scanner histories.
Definition at line 222 of file manager.py.
◆ _async_save_scanner_history()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._async_save_scanner_history |
( |
|
self, |
|
|
BaseHaScanner |
scanner |
|
) |
| |
|
private |
Save the scanner history.
Definition at line 229 of file manager.py.
◆ _async_trigger_matching_discovery()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._async_trigger_matching_discovery |
( |
|
self, |
|
|
BluetoothServiceInfoBleak
|
service_info |
|
) |
| |
|
private |
Trigger discovery for matching domains.
Definition at line 76 of file manager.py.
◆ _async_unregister_scanner()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._async_unregister_scanner |
( |
|
self, |
|
|
BaseHaScanner |
scanner, |
|
|
CALLBACK_TYPE
|
unregister |
|
) |
| |
|
private |
◆ _discover_service_info()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._discover_service_info |
( |
|
self, |
|
|
BluetoothServiceInfoBleak |
service_info |
|
) |
| |
|
private |
◆ _handle_config_entry_removed()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._handle_config_entry_removed |
( |
|
self, |
|
|
config_entries.ConfigEntry |
entry |
|
) |
| |
|
private |
Handle config entry changes.
Definition at line 257 of file manager.py.
◆ async_rediscover_address()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.async_rediscover_address |
( |
|
self, |
|
|
str |
address |
|
) |
| |
Trigger discovery of devices which have already been seen.
Definition at line 95 of file manager.py.
◆ async_register_callback()
| Callable[[], None] homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.async_register_callback |
( |
|
self, |
|
|
BluetoothCallback |
callback, |
|
|
BluetoothCallbackMatcher | None |
matcher |
|
) |
| |
◆ async_register_scanner()
| CALLBACK_TYPE homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.async_register_scanner |
( |
|
self, |
|
|
BaseHaScanner |
scanner, |
|
|
int | None |
connection_slots = None |
|
) |
| |
◆ async_setup()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.async_setup |
( |
|
self | ) |
|
Set up the bluetooth manager.
Definition at line 147 of file manager.py.
◆ async_stop()
| None homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.async_stop |
( |
|
self, |
|
|
Event | None |
event = None |
|
) |
| |
Stop the Bluetooth integration at shutdown.
Definition at line 213 of file manager.py.
◆ __slots__
| tuple homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.__slots__ |
|
staticprivate |
Initial value:= (
"hass",
"storage",
"_integration_matcher",
"_callback_index",
"_cancel_logging_listener",
)
Definition at line 46 of file manager.py.
◆ _callback_index
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._callback_index |
|
private |
◆ _cancel_logging_listener
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._cancel_logging_listener |
|
private |
◆ _connectable_history
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._connectable_history |
|
private |
◆ _debug
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._debug |
|
private |
◆ _integration_matcher
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager._integration_matcher |
|
private |
◆ hass
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.hass |
◆ storage
| homeassistant.components.bluetooth.manager.HomeAssistantBluetoothManager.storage |
The documentation for this class was generated from the following file:
- core/homeassistant/components/bluetooth/manager.py