Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.bluetooth.storage.BluetoothStorage Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass)
 
DiscoveredDeviceAdvertisementData|None async_get_advertisement_history (self, str scanner)
 
DiscoveredDeviceAdvertisementDataDict|None async_get_advertisement_history_as_dict (self, str scanner)
 
None async_set_advertisement_history (self, str scanner, DiscoveredDeviceAdvertisementData data)
 
None async_setup (self)
 
list[str] scanners (self)
 

Private Member Functions

DiscoveryStorageType _async_get_data (self)
 

Private Attributes

 _data
 

Detailed Description

Storage for remote scanners.

Definition at line 22 of file storage.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.bluetooth.storage.BluetoothStorage.__init__ (   self,
HomeAssistant  hass 
)
Initialize the storage.

Definition at line 25 of file storage.py.

Member Function Documentation

◆ _async_get_data()

DiscoveryStorageType homeassistant.components.bluetooth.storage.BluetoothStorage._async_get_data (   self)
private
Get data to save to disk.

Definition at line 58 of file storage.py.

◆ async_get_advertisement_history()

DiscoveredDeviceAdvertisementData | None homeassistant.components.bluetooth.storage.BluetoothStorage.async_get_advertisement_history (   self,
str   scanner 
)
Get discovered devices by scanner.

Definition at line 42 of file storage.py.

◆ async_get_advertisement_history_as_dict()

DiscoveredDeviceAdvertisementDataDict | None homeassistant.components.bluetooth.storage.BluetoothStorage.async_get_advertisement_history_as_dict (   self,
str   scanner 
)
Get discovered devices by scanner as a dict.

Definition at line 51 of file storage.py.

◆ async_set_advertisement_history()

None homeassistant.components.bluetooth.storage.BluetoothStorage.async_set_advertisement_history (   self,
str  scanner,
DiscoveredDeviceAdvertisementData   data 
)
Set discovered devices by scanner.

Definition at line 63 of file storage.py.

◆ async_setup()

None homeassistant.components.bluetooth.storage.BluetoothStorage.async_setup (   self)
Set up the storage.

Definition at line 32 of file storage.py.

◆ scanners()

list[str] homeassistant.components.bluetooth.storage.BluetoothStorage.scanners (   self)
Get all scanners.

Definition at line 37 of file storage.py.

Member Data Documentation

◆ _data

homeassistant.components.bluetooth.storage.BluetoothStorage._data
private

Definition at line 34 of file storage.py.


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