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

Classes

class  HuaweiLteScannerEntity
 

Functions

str _better_snakecase (str text)
 
list[_HostType]|None _get_hosts (Router router, bool ignore_subscriptions=False)
 
bool _is_connected (_HostType|None host)
 
bool _is_us (_HostType host)
 
bool _is_wireless (_HostType host)
 
None async_add_new_entities (Router router, AddEntitiesCallback async_add_entities, set[str] tracked)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string _DEVICE_SCAN = f"{DEVICE_TRACKER_DOMAIN}/device_scan"
 
 _HostType
 
 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for device tracking of Huawei LTE routers.

Function Documentation

◆ _better_snakecase()

str homeassistant.components.huawei_lte.device_tracker._better_snakecase ( str  text)
private

Definition at line 159 of file device_tracker.py.

◆ _get_hosts()

list[_HostType] | None homeassistant.components.huawei_lte.device_tracker._get_hosts ( Router  router,
bool   ignore_subscriptions = False 
)
private

Definition at line 40 of file device_tracker.py.

◆ _is_connected()

bool homeassistant.components.huawei_lte.device_tracker._is_connected ( _HostType | None  host)
private

Definition at line 116 of file device_tracker.py.

◆ _is_us()

bool homeassistant.components.huawei_lte.device_tracker._is_us ( _HostType  host)
private
Try to determine if the host entry is us, the HA instance.

Definition at line 122 of file device_tracker.py.

◆ _is_wireless()

bool homeassistant.components.huawei_lte.device_tracker._is_wireless ( _HostType  host)
private

Definition at line 110 of file device_tracker.py.

◆ async_add_new_entities()

None homeassistant.components.huawei_lte.device_tracker.async_add_new_entities ( Router  router,
AddEntitiesCallback  async_add_entities,
set[str]  tracked 
)
Add new entities that are not already being tracked.

Definition at line 129 of file device_tracker.py.

◆ async_setup_entry()

None homeassistant.components.huawei_lte.device_tracker.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up from config entry.

Definition at line 53 of file device_tracker.py.

Variable Documentation

◆ _DEVICE_SCAN

string homeassistant.components.huawei_lte.device_tracker._DEVICE_SCAN = f"{DEVICE_TRACKER_DOMAIN}/device_scan"
private

Definition at line 35 of file device_tracker.py.

◆ _HostType

homeassistant.components.huawei_lte.device_tracker._HostType
private

Definition at line 37 of file device_tracker.py.

◆ _LOGGER

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

Definition at line 33 of file device_tracker.py.