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

Public Member Functions

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

Public Attributes

 host
 
 last_results
 
 success_init
 

Private Member Functions

def _update_info (self)
 

Detailed Description

Class which queries a router running Swisscom Internet-Box firmware.

Definition at line 39 of file device_tracker.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner.__init__ (   self,
  config 
)
Initialize the scanner.

Definition at line 42 of file device_tracker.py.

Member Function Documentation

◆ _update_info()

def homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner._update_info (   self)
private
Ensure the information from the Swisscom router is up to date.

Return boolean if scanning successful.

Definition at line 65 of file device_tracker.py.

◆ get_device_name()

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

Definition at line 56 of file device_tracker.py.

◆ get_swisscom_data()

def homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner.get_swisscom_data (   self)
Retrieve data from Swisscom and return parsed result.

Definition at line 81 of file device_tracker.py.

◆ scan_devices()

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

Definition at line 51 of file device_tracker.py.

Member Data Documentation

◆ host

homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner.host

Definition at line 44 of file device_tracker.py.

◆ last_results

homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner.last_results

Definition at line 45 of file device_tracker.py.

◆ success_init

homeassistant.components.swisscom.device_tracker.SwisscomDeviceScanner.success_init

Definition at line 49 of file device_tracker.py.


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