Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.thomson.device_tracker Namespace Reference

Classes

class  ThomsonDeviceScanner
 

Functions

ThomsonDeviceScanner|None get_scanner (HomeAssistant hass, ConfigType config)
 

Variables

 _DEVICES_REGEX
 
 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for THOMSON routers.

Function Documentation

◆ get_scanner()

ThomsonDeviceScanner | None homeassistant.components.thomson.device_tracker.get_scanner ( HomeAssistant  hass,
ConfigType  config 
)
Validate the configuration and return a THOMSON scanner.

Definition at line 42 of file device_tracker.py.

Variable Documentation

◆ _DEVICES_REGEX

homeassistant.components.thomson.device_tracker._DEVICES_REGEX
private
Initial value:
1 = re.compile(
2  r"(?P<mac>(([0-9a-f]{2}[:-]){5}([0-9a-f]{2})))\s"
3  r"(?P<ip>([0-9]{1,3}[\.]){3}[0-9]{1,3})\s+"
4  r"(?P<status>([^\s]+))\s+"
5  r"(?P<type>([^\s]+))\s+"
6  r"(?P<intf>([^\s]+))\s+"
7  r"(?P<hwintf>([^\s]+))\s+"
8  r"(?P<host>([^\s]+))"
9 )

Definition at line 23 of file device_tracker.py.

◆ _LOGGER

homeassistant.components.thomson.device_tracker._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file device_tracker.py.

◆ PLATFORM_SCHEMA

homeassistant.components.thomson.device_tracker.PLATFORM_SCHEMA
Initial value:
1 = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_PASSWORD): cv.string,
5  vol.Required(CONF_USERNAME): cv.string,
6  }
7 )

Definition at line 33 of file device_tracker.py.