Skip to content

Commit

Permalink
Remove translation_key for Tuya quirk v2 thermostat (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES authored Dec 23, 2024
1 parent ca569cf commit 56001dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zhaquirks/tuya/ts0601_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def __init__(self, *args, **kwargs):
attribute_name="thermostat_mode",
enum_class=ThermostatMode,
translation_key="thermostat_mode",
fallback_name="Mode",
fallback_name="Thermostat mode",
)
.tuya_enum(
dp_id=109,
Expand Down Expand Up @@ -182,7 +182,6 @@ def __init__(self, *args, **kwargs):
device_class=SensorDeviceClass.CURRENT,
state_class=SensorStateClass.MEASUREMENT,
unit=UnitOfElectricCurrent.AMPERE,
translation_key="current",
fallback_name="Current",
)
.tuya_sensor(
Expand All @@ -192,7 +191,6 @@ def __init__(self, *args, **kwargs):
device_class=SensorDeviceClass.VOLTAGE,
state_class=SensorStateClass.MEASUREMENT,
unit=UnitOfElectricPotential.VOLT,
translation_key="voltage",
fallback_name="Voltage",
)
.tuya_sensor(
Expand All @@ -202,7 +200,6 @@ def __init__(self, *args, **kwargs):
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
unit=UnitOfPower.WATT,
translation_key="power",
fallback_name="Power",
)
.tuya_sensor(
Expand All @@ -213,7 +210,6 @@ def __init__(self, *args, **kwargs):
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL,
unit=UnitOfEnergy.KILO_WATT_HOUR,
translation_key="energy",
fallback_name="Energy",
)
.skip_configuration()
Expand Down

0 comments on commit 56001dd

Please sign in to comment.