Use default translations by removing names from tplink descriptions (#98338)

This commit is contained in:
Joost Lekkerkerker 2023-08-14 11:51:08 +02:00 committed by Franck Nijhof
parent 9f69ab1604
commit 69c61a2632
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -50,7 +50,6 @@ ENERGY_SENSORS: tuple[TPLinkSensorEntityDescription, ...] = (
native_unit_of_measurement=UnitOfPower.WATT, native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER, device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
name="Current Consumption",
emeter_attr="power", emeter_attr="power",
precision=1, precision=1,
), ),
@ -60,7 +59,6 @@ ENERGY_SENSORS: tuple[TPLinkSensorEntityDescription, ...] = (
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY, device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,
name="Total Consumption",
emeter_attr="total", emeter_attr="total",
precision=3, precision=3,
), ),
@ -70,7 +68,6 @@ ENERGY_SENSORS: tuple[TPLinkSensorEntityDescription, ...] = (
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY, device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,
name="Today's Consumption",
precision=3, precision=3,
), ),
TPLinkSensorEntityDescription( TPLinkSensorEntityDescription(