2019-08-26 08:32:50 +00:00
|
|
|
"""Huawei LTE constants."""
|
|
|
|
|
|
|
|
DOMAIN = "huawei_lte"
|
|
|
|
|
2019-10-24 16:31:49 +00:00
|
|
|
DEFAULT_DEVICE_NAME = "LTE"
|
2019-12-25 11:42:28 +00:00
|
|
|
DEFAULT_NOTIFY_SERVICE_NAME = DOMAIN
|
2019-10-24 16:31:49 +00:00
|
|
|
|
|
|
|
UPDATE_SIGNAL = f"{DOMAIN}_update"
|
|
|
|
UPDATE_OPTIONS_SIGNAL = f"{DOMAIN}_options_update"
|
|
|
|
|
2019-11-03 04:28:38 +00:00
|
|
|
CONNECTION_TIMEOUT = 10
|
2020-02-12 01:54:19 +00:00
|
|
|
NOTIFY_SUPPRESS_TIMEOUT = 30
|
2019-11-03 04:28:38 +00:00
|
|
|
|
2019-12-08 11:21:48 +00:00
|
|
|
SERVICE_CLEAR_TRAFFIC_STATISTICS = "clear_traffic_statistics"
|
|
|
|
SERVICE_REBOOT = "reboot"
|
2019-12-25 11:43:51 +00:00
|
|
|
SERVICE_RESUME_INTEGRATION = "resume_integration"
|
|
|
|
SERVICE_SUSPEND_INTEGRATION = "suspend_integration"
|
|
|
|
|
|
|
|
ADMIN_SERVICES = {
|
|
|
|
SERVICE_CLEAR_TRAFFIC_STATISTICS,
|
|
|
|
SERVICE_REBOOT,
|
|
|
|
SERVICE_RESUME_INTEGRATION,
|
|
|
|
SERVICE_SUSPEND_INTEGRATION,
|
|
|
|
}
|
2019-12-08 11:21:48 +00:00
|
|
|
|
2019-10-24 16:31:49 +00:00
|
|
|
KEY_DEVICE_BASIC_INFORMATION = "device_basic_information"
|
2019-08-26 08:32:50 +00:00
|
|
|
KEY_DEVICE_INFORMATION = "device_information"
|
|
|
|
KEY_DEVICE_SIGNAL = "device_signal"
|
2019-10-26 10:29:36 +00:00
|
|
|
KEY_DIALUP_MOBILE_DATASWITCH = "dialup_mobile_dataswitch"
|
2020-03-04 22:56:37 +00:00
|
|
|
KEY_MONITORING_MONTH_STATISTICS = "monitoring_month_statistics"
|
2019-12-01 06:09:08 +00:00
|
|
|
KEY_MONITORING_STATUS = "monitoring_status"
|
2019-08-26 08:32:50 +00:00
|
|
|
KEY_MONITORING_TRAFFIC_STATISTICS = "monitoring_traffic_statistics"
|
2020-03-05 19:29:53 +00:00
|
|
|
KEY_NET_CURRENT_PLMN = "net_current_plmn"
|
|
|
|
KEY_NET_NET_MODE = "net_net_mode"
|
2020-06-03 09:59:06 +00:00
|
|
|
KEY_SMS_SMS_COUNT = "sms_sms_count"
|
2019-08-26 08:32:50 +00:00
|
|
|
KEY_WLAN_HOST_LIST = "wlan_host_list"
|
2020-03-17 17:04:01 +00:00
|
|
|
KEY_WLAN_WIFI_FEATURE_SWITCH = "wlan_wifi_feature_switch"
|
2019-10-24 16:31:49 +00:00
|
|
|
|
2020-03-17 17:04:01 +00:00
|
|
|
BINARY_SENSOR_KEYS = {KEY_MONITORING_STATUS, KEY_WLAN_WIFI_FEATURE_SWITCH}
|
2019-12-01 06:09:08 +00:00
|
|
|
|
2019-10-24 16:31:49 +00:00
|
|
|
DEVICE_TRACKER_KEYS = {KEY_WLAN_HOST_LIST}
|
|
|
|
|
|
|
|
SENSOR_KEYS = {
|
|
|
|
KEY_DEVICE_INFORMATION,
|
|
|
|
KEY_DEVICE_SIGNAL,
|
2020-03-04 22:56:37 +00:00
|
|
|
KEY_MONITORING_MONTH_STATISTICS,
|
|
|
|
KEY_MONITORING_STATUS,
|
2019-10-24 16:31:49 +00:00
|
|
|
KEY_MONITORING_TRAFFIC_STATISTICS,
|
2020-03-05 19:29:53 +00:00
|
|
|
KEY_NET_CURRENT_PLMN,
|
|
|
|
KEY_NET_NET_MODE,
|
2020-06-03 09:59:06 +00:00
|
|
|
KEY_SMS_SMS_COUNT,
|
2019-10-24 16:31:49 +00:00
|
|
|
}
|
|
|
|
|
2019-10-26 10:29:36 +00:00
|
|
|
SWITCH_KEYS = {KEY_DIALUP_MOBILE_DATASWITCH}
|
|
|
|
|
2020-08-16 11:38:12 +00:00
|
|
|
ALL_KEYS = (
|
|
|
|
BINARY_SENSOR_KEYS
|
|
|
|
| DEVICE_TRACKER_KEYS
|
|
|
|
| SENSOR_KEYS
|
|
|
|
| SWITCH_KEYS
|
|
|
|
| {KEY_DEVICE_BASIC_INFORMATION}
|
|
|
|
)
|