Use translations

This commit is contained in:
Jack Boswell (boswelja)
2023-08-07 20:15:37 +12:00
parent e3c8f77115
commit e56ee6e951
2 changed files with 6 additions and 1 deletions

View File

@@ -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"],

View File

@@ -44,6 +44,11 @@
"name": "Unexpected location"
}
},
"device_tracker": {
"device_location": {
"name": "Device location"
}
},
"sensor": {
"ping": {
"name": "Ping"