From 76bbd94f5d6c3eee91d754d77aa92c6ce14c8ac6 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Thu, 6 Nov 2025 23:59:14 +0100 Subject: [PATCH] Make BTHome binary sensor names translatable (#155940) --- homeassistant/components/bthome/binary_sensor.py | 6 ++---- homeassistant/components/bthome/strings.json | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/bthome/binary_sensor.py b/homeassistant/components/bthome/binary_sensor.py index 97ed85c1204..0fd1b88f0fc 100644 --- a/homeassistant/components/bthome/binary_sensor.py +++ b/homeassistant/components/bthome/binary_sensor.py @@ -63,6 +63,7 @@ BINARY_SENSOR_DESCRIPTIONS = { ), BTHomeBinarySensorDeviceClass.GENERIC: BinarySensorEntityDescription( key=BTHomeBinarySensorDeviceClass.GENERIC, + translation_key="generic", ), BTHomeBinarySensorDeviceClass.LIGHT: BinarySensorEntityDescription( key=BTHomeBinarySensorDeviceClass.LIGHT, @@ -159,10 +160,7 @@ def sensor_update_to_bluetooth_data_update( device_key_to_bluetooth_entity_key(device_key): sensor_values.native_value for device_key, sensor_values in sensor_update.binary_entity_values.items() }, - entity_names={ - device_key_to_bluetooth_entity_key(device_key): sensor_values.name - for device_key, sensor_values in sensor_update.binary_entity_values.items() - }, + entity_names={}, ) diff --git a/homeassistant/components/bthome/strings.json b/homeassistant/components/bthome/strings.json index eab8888deed..94d22fb9d6b 100644 --- a/homeassistant/components/bthome/strings.json +++ b/homeassistant/components/bthome/strings.json @@ -47,6 +47,11 @@ } }, "entity": { + "binary_sensor": { + "generic": { + "name": "Generic" + } + }, "event": { "button": { "state_attributes": {