From e56ee6e951d2916951d33fb18217509f29843982 Mon Sep 17 00:00:00 2001 From: "Jack Boswell (boswelja)" Date: Mon, 7 Aug 2023 20:15:37 +1200 Subject: [PATCH] Use translations --- homeassistant/components/starlink/device_tracker.py | 2 +- homeassistant/components/starlink/strings.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/starlink/device_tracker.py b/homeassistant/components/starlink/device_tracker.py index f90b88f49fe..54c4ec81fc5 100644 --- a/homeassistant/components/starlink/device_tracker.py +++ b/homeassistant/components/starlink/device_tracker.py @@ -65,7 +65,7 @@ class StarlinkDeviceTrackerEntity(StarlinkEntity, TrackerEntity): DEVICE_TRACKERS = [ StarlinkDeviceTrackerEntityDescription( key="device_location", - name="Device location", + translation_key="device_location", entity_registry_enabled_default=False, latitude_fn=lambda data: data.location["latitude"], longitude_fn=lambda data: data.location["longitude"], diff --git a/homeassistant/components/starlink/strings.json b/homeassistant/components/starlink/strings.json index a9e50f5d39f..0ec85c68956 100644 --- a/homeassistant/components/starlink/strings.json +++ b/homeassistant/components/starlink/strings.json @@ -44,6 +44,11 @@ "name": "Unexpected location" } }, + "device_tracker": { + "device_location": { + "name": "Device location" + } + }, "sensor": { "ping": { "name": "Ping"