From d1e19c3a855b25b0270b8e636c1439d8172785bf Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Thu, 6 Jul 2023 22:39:18 +0200 Subject: [PATCH] Add entity translations to Pushbullet (#95943) --- homeassistant/components/pushbullet/sensor.py | 20 +++++------ .../components/pushbullet/strings.json | 34 +++++++++++++++++++ 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/pushbullet/sensor.py b/homeassistant/components/pushbullet/sensor.py index b61469f6b2a..84d2998e992 100644 --- a/homeassistant/components/pushbullet/sensor.py +++ b/homeassistant/components/pushbullet/sensor.py @@ -16,50 +16,50 @@ from .const import DATA_UPDATED, DOMAIN SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( SensorEntityDescription( key="application_name", - name="Application name", + translation_key="application_name", entity_registry_enabled_default=False, ), SensorEntityDescription( key="body", - name="Body", + translation_key="body", ), SensorEntityDescription( key="notification_id", - name="Notification ID", + translation_key="notification_id", entity_registry_enabled_default=False, ), SensorEntityDescription( key="notification_tag", - name="Notification tag", + translation_key="notification_tag", entity_registry_enabled_default=False, ), SensorEntityDescription( key="package_name", - name="Package name", + translation_key="package_name", entity_registry_enabled_default=False, ), SensorEntityDescription( key="receiver_email", - name="Receiver email", + translation_key="receiver_email", entity_registry_enabled_default=False, ), SensorEntityDescription( key="sender_email", - name="Sender email", + translation_key="sender_email", entity_registry_enabled_default=False, ), SensorEntityDescription( key="source_device_iden", - name="Sender device ID", + translation_key="source_device_identifier", entity_registry_enabled_default=False, ), SensorEntityDescription( key="title", - name="Title", + translation_key="title", ), SensorEntityDescription( key="type", - name="Type", + translation_key="type", entity_registry_enabled_default=False, ), ) diff --git a/homeassistant/components/pushbullet/strings.json b/homeassistant/components/pushbullet/strings.json index a6571ae7bf0..94d4202ea8c 100644 --- a/homeassistant/components/pushbullet/strings.json +++ b/homeassistant/components/pushbullet/strings.json @@ -15,5 +15,39 @@ } } } + }, + "entity": { + "sensor": { + "application_name": { + "name": "Application name" + }, + "body": { + "name": "Body" + }, + "notification_id": { + "name": "Notification ID" + }, + "notification_tag": { + "name": "Notification tag" + }, + "package_name": { + "name": "Package name" + }, + "receiver_email": { + "name": "Receiver email" + }, + "sender_email": { + "name": "Sender email" + }, + "source_device_identifier": { + "name": "Sender device ID" + }, + "title": { + "name": "Title" + }, + "type": { + "name": "Type" + } + } } }