diff --git a/homeassistant/components/tractive/sensor.py b/homeassistant/components/tractive/sensor.py index c412502d8d9..510f8554abd 100644 --- a/homeassistant/components/tractive/sensor.py +++ b/homeassistant/components/tractive/sensor.py @@ -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( diff --git a/homeassistant/components/tractive/strings.json b/homeassistant/components/tractive/strings.json index 7eba02e7f67..f63f0cdf0af 100644 --- a/homeassistant/components/tractive/strings.json +++ b/homeassistant/components/tractive/strings.json @@ -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" + } + } + } } } diff --git a/homeassistant/components/tractive/strings.sensor.json b/homeassistant/components/tractive/strings.sensor.json deleted file mode 100644 index 48a747961c0..00000000000 --- a/homeassistant/components/tractive/strings.sensor.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "state": { - "tractive__tracker_state": { - "not_reporting": "Not reporting", - "operational": "Operational", - "system_shutdown_user": "System shutdown user", - "system_startup": "System startup" - } - } -} diff --git a/homeassistant/components/tractive/translations/en.json b/homeassistant/components/tractive/translations/en.json index dcb3a128ac4..edf452a6f22 100644 --- a/homeassistant/components/tractive/translations/en.json +++ b/homeassistant/components/tractive/translations/en.json @@ -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" + } + } + } } } \ No newline at end of file