@@ -153,7 +153,7 @@ def __init__(self, *args, **kwargs):
153153 attribute_name = "thermostat_mode" ,
154154 enum_class = ThermostatMode ,
155155 translation_key = "thermostat_mode" ,
156- fallback_name = "Mode " ,
156+ fallback_name = "Thermostat mode " ,
157157 )
158158 .tuya_enum (
159159 dp_id = 109 ,
@@ -182,7 +182,6 @@ def __init__(self, *args, **kwargs):
182182 device_class = SensorDeviceClass .CURRENT ,
183183 state_class = SensorStateClass .MEASUREMENT ,
184184 unit = UnitOfElectricCurrent .AMPERE ,
185- translation_key = "current" ,
186185 fallback_name = "Current" ,
187186 )
188187 .tuya_sensor (
@@ -192,7 +191,6 @@ def __init__(self, *args, **kwargs):
192191 device_class = SensorDeviceClass .VOLTAGE ,
193192 state_class = SensorStateClass .MEASUREMENT ,
194193 unit = UnitOfElectricPotential .VOLT ,
195- translation_key = "voltage" ,
196194 fallback_name = "Voltage" ,
197195 )
198196 .tuya_sensor (
@@ -202,7 +200,6 @@ def __init__(self, *args, **kwargs):
202200 device_class = SensorDeviceClass .POWER ,
203201 state_class = SensorStateClass .MEASUREMENT ,
204202 unit = UnitOfPower .WATT ,
205- translation_key = "power" ,
206203 fallback_name = "Power" ,
207204 )
208205 .tuya_sensor (
@@ -213,7 +210,6 @@ def __init__(self, *args, **kwargs):
213210 device_class = SensorDeviceClass .ENERGY ,
214211 state_class = SensorStateClass .TOTAL ,
215212 unit = UnitOfEnergy .KILO_WATT_HOUR ,
216- translation_key = "energy" ,
217213 fallback_name = "Energy" ,
218214 )
219215 .skip_configuration ()
0 commit comments