From 47c8b7804d7b0e579af0b92643d664ed600aa555 Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Mon, 3 Apr 2023 13:40:52 +0200 Subject: [PATCH] Add entity name translations to BraviaTV (#90702) Add entity name translations --- homeassistant/components/braviatv/button.py | 4 ++-- homeassistant/components/braviatv/strings.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/braviatv/button.py b/homeassistant/components/braviatv/button.py index 768ded6b64f..b382d97a2ae 100644 --- a/homeassistant/components/braviatv/button.py +++ b/homeassistant/components/braviatv/button.py @@ -36,14 +36,14 @@ class BraviaTVButtonDescription( BUTTONS: tuple[BraviaTVButtonDescription, ...] = ( BraviaTVButtonDescription( key="reboot", - name="Reboot", + translation_key="restart", device_class=ButtonDeviceClass.RESTART, entity_category=EntityCategory.CONFIG, press_action=lambda coordinator: coordinator.async_reboot_device(), ), BraviaTVButtonDescription( key="terminate_apps", - name="Terminate apps", + translation_key="terminate_apps", entity_category=EntityCategory.CONFIG, press_action=lambda coordinator: coordinator.async_terminate_apps(), ), diff --git a/homeassistant/components/braviatv/strings.json b/homeassistant/components/braviatv/strings.json index d66f44acc6c..aacaf81465b 100644 --- a/homeassistant/components/braviatv/strings.json +++ b/homeassistant/components/braviatv/strings.json @@ -44,5 +44,15 @@ "not_bravia_device": "The device is not a Bravia TV.", "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" } + }, + "entity": { + "button": { + "restart": { + "name": "[%key:component::button::entity_component::restart::name%]" + }, + "terminate_apps": { + "name": "Terminate apps" + } + } } }