forked from home-assistant/core
Add more Huawei LTE sensor state classes (#57983)
This commit is contained in:
@@ -249,9 +249,12 @@ SENSOR_META: dict[str | tuple[str, str], SensorMeta] = {
|
|||||||
name="Battery",
|
name="Battery",
|
||||||
device_class=DEVICE_CLASS_BATTERY,
|
device_class=DEVICE_CLASS_BATTERY,
|
||||||
unit=PERCENTAGE,
|
unit=PERCENTAGE,
|
||||||
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
(KEY_MONITORING_STATUS, "CurrentWifiUser"): SensorMeta(
|
(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(
|
(KEY_MONITORING_STATUS, "PrimaryDns"): SensorMeta(
|
||||||
name="Primary DNS server", icon="mdi:ip"
|
name="Primary DNS server", icon="mdi:ip"
|
||||||
@@ -296,7 +299,10 @@ SENSOR_META: dict[str | tuple[str, str], SensorMeta] = {
|
|||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalConnectTime"): SensorMeta(
|
(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(
|
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalDownload"): SensorMeta(
|
||||||
name="Total download",
|
name="Total download",
|
||||||
|
Reference in New Issue
Block a user