Remove NAM translations handled by device class (#95740)

Remove translations handled by device class
This commit is contained in:
Joost Lekkerkerker 2023-07-03 03:32:32 +02:00 committed by GitHub
parent caaeb28cbb
commit 4ff158a105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 10 deletions

View file

@ -23,7 +23,6 @@ _LOGGER = logging.getLogger(__name__)
RESTART_BUTTON: ButtonEntityDescription = ButtonEntityDescription( RESTART_BUTTON: ButtonEntityDescription = ButtonEntityDescription(
key="restart", key="restart",
translation_key="restart",
device_class=ButtonDeviceClass.RESTART, device_class=ButtonDeviceClass.RESTART,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
) )

View file

@ -338,7 +338,6 @@ SENSORS: tuple[NAMSensorEntityDescription, ...] = (
), ),
NAMSensorEntityDescription( NAMSensorEntityDescription(
key=ATTR_SIGNAL_STRENGTH, key=ATTR_SIGNAL_STRENGTH,
translation_key="signal_strength",
suggested_display_precision=0, suggested_display_precision=0,
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT, native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
device_class=SensorDeviceClass.SIGNAL_STRENGTH, device_class=SensorDeviceClass.SIGNAL_STRENGTH,

View file

@ -39,11 +39,6 @@
} }
}, },
"entity": { "entity": {
"button": {
"restart": {
"name": "[%key:component::button::entity_component::restart::name%]"
}
},
"sensor": { "sensor": {
"bme280_humidity": { "bme280_humidity": {
"name": "BME280 humidity" "name": "BME280 humidity"
@ -153,9 +148,6 @@
"dht22_temperature": { "dht22_temperature": {
"name": "DHT22 temperature" "name": "DHT22 temperature"
}, },
"signal_strength": {
"name": "[%key:component::sensor::entity_component::signal_strength::name%]"
},
"last_restart": { "last_restart": {
"name": "Last restart" "name": "Last restart"
} }