mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add more Huawei LTE sensor state classes (#57983)
This commit is contained in:
parent
f2923d8a91
commit
1a9bb47f78
@ -249,9 +249,12 @@ SENSOR_META: dict[str | tuple[str, str], SensorMeta] = {
|
||||
name="Battery",
|
||||
device_class=DEVICE_CLASS_BATTERY,
|
||||
unit=PERCENTAGE,
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
(KEY_MONITORING_STATUS, "CurrentWifiUser"): SensorMeta(
|
||||
name="WiFi clients connected", icon="mdi:wifi"
|
||||
name="WiFi clients connected",
|
||||
icon="mdi:wifi",
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
(KEY_MONITORING_STATUS, "PrimaryDns"): SensorMeta(
|
||||
name="Primary DNS server", icon="mdi:ip"
|
||||
@ -296,7 +299,10 @@ SENSOR_META: dict[str | tuple[str, str], SensorMeta] = {
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalConnectTime"): SensorMeta(
|
||||
name="Total connected duration", unit=TIME_SECONDS, icon="mdi:timer-outline"
|
||||
name="Total connected duration",
|
||||
unit=TIME_SECONDS,
|
||||
icon="mdi:timer-outline",
|
||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalDownload"): SensorMeta(
|
||||
name="Total download",
|
||||
|
Loading…
x
Reference in New Issue
Block a user