@@ -153,7 +153,7 @@ def __init__(self, *args, **kwargs):
153
153
attribute_name = "thermostat_mode" ,
154
154
enum_class = ThermostatMode ,
155
155
translation_key = "thermostat_mode" ,
156
- fallback_name = "Mode " ,
156
+ fallback_name = "Thermostat mode " ,
157
157
)
158
158
.tuya_enum (
159
159
dp_id = 109 ,
@@ -182,7 +182,6 @@ def __init__(self, *args, **kwargs):
182
182
device_class = SensorDeviceClass .CURRENT ,
183
183
state_class = SensorStateClass .MEASUREMENT ,
184
184
unit = UnitOfElectricCurrent .AMPERE ,
185
- translation_key = "current" ,
186
185
fallback_name = "Current" ,
187
186
)
188
187
.tuya_sensor (
@@ -192,7 +191,6 @@ def __init__(self, *args, **kwargs):
192
191
device_class = SensorDeviceClass .VOLTAGE ,
193
192
state_class = SensorStateClass .MEASUREMENT ,
194
193
unit = UnitOfElectricPotential .VOLT ,
195
- translation_key = "voltage" ,
196
194
fallback_name = "Voltage" ,
197
195
)
198
196
.tuya_sensor (
@@ -202,7 +200,6 @@ def __init__(self, *args, **kwargs):
202
200
device_class = SensorDeviceClass .POWER ,
203
201
state_class = SensorStateClass .MEASUREMENT ,
204
202
unit = UnitOfPower .WATT ,
205
- translation_key = "power" ,
206
203
fallback_name = "Power" ,
207
204
)
208
205
.tuya_sensor (
@@ -213,7 +210,6 @@ def __init__(self, *args, **kwargs):
213
210
device_class = SensorDeviceClass .ENERGY ,
214
211
state_class = SensorStateClass .TOTAL ,
215
212
unit = UnitOfEnergy .KILO_WATT_HOUR ,
216
- translation_key = "energy" ,
217
213
fallback_name = "Energy" ,
218
214
)
219
215
.skip_configuration ()
0 commit comments