Migrate Tractive translations (#83321)

This commit is contained in:
Franck Nijhof 2022-12-05 16:45:57 +01:00 committed by GitHub
parent 67875b99a3
commit f125fd5772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 11 deletions

View File

@ -145,7 +145,7 @@ SENSOR_TYPES: tuple[TractiveSensorEntityDescription, ...] = (
# More states are available by polling the data
key=ATTR_TRACKER_STATE,
name="Tracker state",
device_class="tractive__tracker_state",
translation_key="tracker_state",
entity_class=TractiveHardwareSensor,
),
TractiveSensorEntityDescription(

View File

@ -17,5 +17,17 @@
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
"reauth_failed_existing": "Could not update the config entry, please remove the integration and set it up again."
}
},
"entity": {
"sensor": {
"tracker_state": {
"state": {
"not_reporting": "Not reporting",
"operational": "Operational",
"system_shutdown_user": "System shutdown user",
"system_startup": "System startup"
}
}
}
}
}

View File

@ -1,10 +0,0 @@
{
"state": {
"tractive__tracker_state": {
"not_reporting": "Not reporting",
"operational": "Operational",
"system_shutdown_user": "System shutdown user",
"system_startup": "System startup"
}
}
}

View File

@ -17,5 +17,17 @@
}
}
}
},
"entity": {
"sensor": {
"tracker_state": {
"state": {
"not_reporting": "Not reporting",
"operational": "Operational",
"system_shutdown_user": "System shutdown user",
"system_startup": "System startup"
}
}
}
}
}