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

Namespaces

 binary_sensor
 
 button
 
 config_flow
 
 const
 
 device_tracker
 
 entity
 
 notify
 
 select
 
 sensor
 
 switch
 
 utils
 

Classes

class  HuaweiLteData
 
class  Router
 

Functions

bool async_migrate_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry config_entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA
 
 NOTIFY_SCHEMA
 
list PLATFORMS
 
 SCAN_INTERVAL = timedelta(seconds=10)
 
 SERVICE_SCHEMA = vol.Schema({vol.Optional(CONF_URL): cv.url})
 

Detailed Description

Support for Huawei LTE routers.

Function Documentation

◆ async_migrate_entry()

bool homeassistant.components.huawei_lte.async_migrate_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Migrate config entry to new version.

Definition at line 553 of file __init__.py.

◆ async_setup()

bool homeassistant.components.huawei_lte.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up Huawei LTE component.

Definition at line 497 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.huawei_lte.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up Huawei LTE component from config entry.

Definition at line 329 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.huawei_lte.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Unload config entry.

Definition at line 484 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 89 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.huawei_lte.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.All(
4  cv.ensure_list,
5  [
6  vol.Schema(
7  {
8  vol.Required(CONF_URL): cv.url,
9  vol.Optional(CONF_USERNAME): cv.string,
10  vol.Optional(CONF_PASSWORD): cv.string,
11  vol.Optional(NOTIFY_DOMAIN): NOTIFY_SCHEMA,
12  }
13  )
14  ],
15  )
16  },
17  extra=vol.ALLOW_EXTRA,
18 )

Definition at line 105 of file __init__.py.

◆ NOTIFY_SCHEMA

homeassistant.components.huawei_lte.NOTIFY_SCHEMA
Initial value:
1 = vol.Any(
2  None,
3  vol.Schema(
4  {
5  vol.Optional(CONF_NAME): cv.string,
6  vol.Optional(CONF_RECIPIENT): vol.Any(
7  None, vol.All(cv.ensure_list, [cv.string])
8  ),
9  }
10  ),
11 )

Definition at line 93 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.huawei_lte.PLATFORMS
Initial value:
1 = [
2  Platform.BINARY_SENSOR,
3  Platform.BUTTON,
4  Platform.DEVICE_TRACKER,
5  Platform.SELECT,
6  Platform.SENSOR,
7  Platform.SWITCH,
8 ]

Definition at line 126 of file __init__.py.

◆ SCAN_INTERVAL

homeassistant.components.huawei_lte.SCAN_INTERVAL = timedelta(seconds=10)

Definition at line 91 of file __init__.py.

◆ SERVICE_SCHEMA

homeassistant.components.huawei_lte.SERVICE_SCHEMA = vol.Schema({vol.Optional(CONF_URL): cv.url})

Definition at line 124 of file __init__.py.