|
3 | 3 | # SPDX-License-Identifier: MIT |
4 | 4 |
|
5 | 5 | _attrs = { |
6 | | - "ACMeasureUnit": "ac_measure", # 2.0.3 添加 |
7 | | - "AC_MEASUREUnit": "ac_measure", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 6 | + "ACMeasureUnit": "ac_measure", |
8 | 7 | "ADCV11Unit": "adc_v11", |
9 | 8 | "ADCUnit": "adc", |
10 | 9 | "AIN4_20MAUnit": "ain4_20ma", |
|
31 | 30 | "DualButtonUnit": "dual_button", |
32 | 31 | "EarthUnit": "earth", |
33 | 32 | "EncoderUnit": "encoder", |
34 | | - "Encoder8Unit": "encoder8", # 2.0.3 添加 |
35 | | - "ENCODER8Unit": "encoder8", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 33 | + "Encoder8Unit": "encoder8", |
36 | 34 | "ENVUnit": "env", |
37 | 35 | "ENVPROUnit": "envpro", |
38 | 36 | "ExtEncoderUnit": "extencoder", |
|
42 | 40 | "FanUnit": "fan", |
43 | 41 | "FingerUnit": "finger", |
44 | 42 | "FlashLightUnit": "flash_light", |
45 | | - "GestureUnit": "gesture", # 2.0.3 添加 |
46 | | - "GESTUREUnit": "gesture", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 43 | + "GestureUnit": "gesture", |
47 | 44 | "GPSUnit": "gps", |
48 | 45 | "Grove2GroveUnit": "grove2grove", |
49 | 46 | "HallEffectUnit": "hall_effect", |
50 | | - "HbridgeUnit": "hbridge", # 2.0.3 添加 |
51 | | - "HBRIDGEUnit": "hbridge", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 47 | + "HbridgeUnit": "hbridge", |
52 | 48 | "IRUnit": "ir", |
53 | 49 | "KeyUnit": "key", |
54 | | - "KMeterISOUnit": "kmeter_iso", # 2.0.3 添加 |
55 | | - "KMETER_ISOUnit": "kmeter_iso", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 50 | + "KMeterISOUnit": "kmeter_iso", |
56 | 51 | "LaserRXUnit": "laser_rx", |
57 | 52 | "LaserTXUnit": "laser_tx", |
58 | 53 | "LightUnit": "light", |
|
76 | 71 | "ISO485Unit": "rs485_iso", |
77 | 72 | "RS485Unit": "rs485", |
78 | 73 | "RTC8563Unit": "rtc8563", |
79 | | - "ScalesUnit": "scales", # 2.0.3 添加 |
80 | | - "SCALESUnit": "scales", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 74 | + "ScalesUnit": "scales", |
81 | 75 | "Servos8Unit": "servos8", |
82 | | - "SERVOS8Unit": "servos8", |
83 | 76 | "SSRUnit": "ssr", |
84 | | - "SynthUnit": "synth", # 2.0.3 添加 |
85 | | - "SYNTHUnit": "synth", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
86 | | - "ThermalUnit": "thermal", # 2.0.3 添加 |
87 | | - "THERMALUnit": "thermal", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 77 | + "SynthUnit": "synth", |
| 78 | + "ThermalUnit": "thermal", |
88 | 79 | "Thermal2Unit": "thermal2", |
89 | 80 | "ToFUnit": "tof", |
90 | 81 | "TOF4MUnit": "tof4m", |
91 | 82 | "TubePressureUnit": "tube_pressure", |
92 | | - "UltrasoundI2CUnit": "ultrasonic_i2c", # 2.0.3 添加 |
93 | | - "ULTRASONIC_I2CUnit": "ultrasonic_i2c", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
94 | | - "UltrasoundIOUnit": "ultrasonic_io", # 2.0.3 添加 |
95 | | - "ULTRASONIC_IOUnit": "ultrasonic_io", # TODO: 类名不符合规范, 2.0.6 移除 |
| 83 | + "UltrasoundI2CUnit": "ultrasonic_i2c", |
| 84 | + "UltrasoundIOUnit": "ultrasonic_io", |
96 | 85 | "UWBUnit": "uwb", |
97 | | - "VoltmeterUnit": "vmeter", # 2.0.3 添加 |
98 | | - "VMeterUnit": "vmeter", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
| 86 | + "VoltmeterUnit": "vmeter", |
99 | 87 | "WateringUnit": "watering", |
100 | | - "WeightI2CUnit": "weight_i2c", # 2.0.3 添加 |
101 | | - "WEIGHT_I2CUnit": "weight_i2c", # TODO: 类名/型参不符合规范, 2.0.6 移除 |
102 | | - "WeightUnit": "weight", # 2.0.3 添加 |
103 | | - "WEIGHTUnit": "weight", # TODO: 类名不符合规范, 2.0.6 移除 |
104 | | - "CatchUnit": "catch", |
| 88 | + "WeightI2CUnit": "weight_i2c", |
| 89 | + "WeightUnit": "weight", |
105 | 90 | } |
106 | 91 |
|
107 | 92 |
|
|
0 commit comments