Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner Class Reference
Inheritance diagram for homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner:
[legend]
Collaboration diagram for homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner:
[legend]

Public Member Functions

def __init__ (self, smarthub_client)
 
def get_bt_smarthub_data (self)
 
def get_device_name (self, device)
 
def scan_devices (self)
 

Public Attributes

 last_results
 
 smarthub
 
 success_init
 

Private Member Functions

def _update_info (self)
 

Detailed Description

Class which queries a BT Smart Hub.

Definition at line 57 of file device_tracker.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.__init__ (   self,
  smarthub_client 
)
Initialise the scanner.

Definition at line 60 of file device_tracker.py.

Member Function Documentation

◆ _update_info()

def homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner._update_info (   self)
private
Ensure the information from the BT Smart Hub is up to date.

Definition at line 86 of file device_tracker.py.

◆ get_bt_smarthub_data()

def homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.get_bt_smarthub_data (   self)
Retrieve data from BT Smart Hub and return parsed result.

Definition at line 97 of file device_tracker.py.

◆ get_device_name()

def homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.get_device_name (   self,
  device 
)
Return the name of the given device or None if we don't know.

Definition at line 77 of file device_tracker.py.

◆ scan_devices()

def homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.scan_devices (   self)
Scan for new devices and return a list with found device IDs.

Definition at line 72 of file device_tracker.py.

Member Data Documentation

◆ last_results

homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.last_results

Definition at line 63 of file device_tracker.py.

◆ smarthub

homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.smarthub

Definition at line 62 of file device_tracker.py.

◆ success_init

homeassistant.components.bt_smarthub.device_tracker.BTSmartHubScanner.success_init

Definition at line 64 of file device_tracker.py.


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