Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex Class Reference
Inheritance diagram for homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex:
[legend]
Collaboration diagram for homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex:
[legend]

Public Member Functions

None __init__ (self)
 
None add_callback_matcher (self, BluetoothCallbackMatcherWithCallback matcher)
 
list[BluetoothCallbackMatcherWithCallbackmatch_callbacks (self, BluetoothServiceInfoBleak service_info)
 
None remove_callback_matcher (self, BluetoothCallbackMatcherWithCallback matcher)
 

Static Private Attributes

tuple __slots__ = ("address", "connectable")
 

Detailed Description

Bluetooth matcher for the bluetooth integration.

Supports matching on addresses.

Definition at line 303 of file match.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex.__init__ (   self)
Initialize the matcher index.

Definition at line 313 of file match.py.

Member Function Documentation

◆ add_callback_matcher()

None homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex.add_callback_matcher (   self,
BluetoothCallbackMatcherWithCallback   matcher 
)
Add a matcher to the index.

Matchers must end up only in one bucket.

We put them in the bucket that they are most likely to match.

Definition at line 321 of file match.py.

◆ match_callbacks()

list[BluetoothCallbackMatcherWithCallback] homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex.match_callbacks (   self,
BluetoothServiceInfoBleak   service_info 
)
Check for a match.

Definition at line 362 of file match.py.

◆ remove_callback_matcher()

None homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex.remove_callback_matcher (   self,
BluetoothCallbackMatcherWithCallback   matcher 
)
Remove a matcher from the index.

Matchers only end up in one bucket, so once we have
removed one, we are done.

Definition at line 342 of file match.py.

Member Data Documentation

◆ __slots__

tuple homeassistant.components.bluetooth.match.BluetoothCallbackMatcherIndex.__slots__ = ("address", "connectable")
staticprivate

Definition at line 311 of file match.py.


The documentation for this class was generated from the following file: