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

Public Member Functions

def __init__ (self, config)
 
def get_device_name (self, device)
 
def get_thomson_data (self)
 
def scan_devices (self)
 

Public Attributes

 host
 
 last_results
 
 password
 
 success_init
 
 username
 

Private Member Functions

def _update_info (self)
 

Detailed Description

Class which queries a router running THOMSON firmware.

Definition at line 49 of file device_tracker.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.__init__ (   self,
  config 
)
Initialize the scanner.

Definition at line 52 of file device_tracker.py.

Member Function Documentation

◆ _update_info()

def homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner._update_info (   self)
private
Ensure the information from the THOMSON router is up to date.

Return boolean if scanning successful.

Definition at line 77 of file device_tracker.py.

◆ get_device_name()

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

Definition at line 68 of file device_tracker.py.

◆ get_thomson_data()

def homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.get_thomson_data (   self)
Retrieve data from THOMSON and return parsed result.

Definition at line 96 of file device_tracker.py.

◆ scan_devices()

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

Definition at line 63 of file device_tracker.py.

Member Data Documentation

◆ host

homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.host

Definition at line 54 of file device_tracker.py.

◆ last_results

homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.last_results

Definition at line 57 of file device_tracker.py.

◆ password

homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.password

Definition at line 56 of file device_tracker.py.

◆ success_init

homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.success_init

Definition at line 61 of file device_tracker.py.

◆ username

homeassistant.components.thomson.device_tracker.ThomsonDeviceScanner.username

Definition at line 55 of file device_tracker.py.


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