Skip to content

Commit 20837b5

Browse files
committed
update device classes
1 parent 13011b2 commit 20837b5

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

.github/scripts/merge_topics.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ def main():
2828
# These get native_unit_of_measurement set in code, so the translation
2929
# file must NOT carry unit_of_measurement for them.
3030
DEVICE_CLASS_METRIC_TYPES = {
31-
'MetricType.POWER',
32-
'MetricType.APPARENT_POWER',
33-
'MetricType.ENERGY',
34-
'MetricType.VOLTAGE',
35-
'MetricType.CURRENT',
36-
'MetricType.FREQUENCY',
37-
'MetricType.ELECTRIC_STORAGE_PERCENTAGE',
38-
'MetricType.TEMPERATURE',
39-
'MetricType.SPEED',
40-
'MetricType.LIQUID_VOLUME',
41-
'MetricType.DURATION',
31+
"MetricType.POWER",
32+
"MetricType.APPARENT_POWER",
33+
"MetricType.ENERGY",
34+
"MetricType.VOLTAGE",
35+
"MetricType.CURRENT",
36+
"MetricType.FREQUENCY",
37+
"MetricType.ELECTRIC_STORAGE_PERCENTAGE",
38+
"MetricType.TEMPERATURE",
39+
"MetricType.HUMIDITY",
40+
"MetricType.PRESSURE",
41+
"MetricType.DISTANCE",
42+
"MetricType.POWER_FACTOR",
43+
"MetricType.SPEED",
44+
"MetricType.LIQUID_VOLUME",
45+
"MetricType.DURATION",
4246
}
4347

4448
# Update topics: add or update entries in en.json under entity.sensor for each topic id

0 commit comments

Comments
 (0)