File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments