mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add missing low
state for ENUM
Tractive sensors (#99057)
* Add missing "low" option * Use existing translations
This commit is contained in:
parent
c686f962b5
commit
579c760f53
@ -176,8 +176,9 @@ SENSOR_TYPES: tuple[TractiveSensorEntityDescription, ...] = (
|
||||
value_fn=lambda state: state.lower() if isinstance(state, str) else state,
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
options=[
|
||||
"ok",
|
||||
"good",
|
||||
"low",
|
||||
"ok",
|
||||
],
|
||||
),
|
||||
TractiveSensorEntityDescription(
|
||||
@ -188,8 +189,9 @@ SENSOR_TYPES: tuple[TractiveSensorEntityDescription, ...] = (
|
||||
value_fn=lambda state: state.lower() if isinstance(state, str) else state,
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
options=[
|
||||
"ok",
|
||||
"good",
|
||||
"low",
|
||||
"ok",
|
||||
],
|
||||
),
|
||||
)
|
||||
|
@ -33,8 +33,9 @@
|
||||
"activity": {
|
||||
"name": "Activity",
|
||||
"state": {
|
||||
"ok": "OK",
|
||||
"good": "Good"
|
||||
"good": "Good",
|
||||
"low": "Low",
|
||||
"ok": "OK"
|
||||
}
|
||||
},
|
||||
"activity_time": {
|
||||
@ -58,8 +59,9 @@
|
||||
"sleep": {
|
||||
"name": "Sleep",
|
||||
"state": {
|
||||
"ok": "OK",
|
||||
"good": "Good"
|
||||
"good": "[%key:component::tractive::entity::sensor::activity::state::good%]",
|
||||
"low": "[%key:component::tractive::entity::sensor::activity::state::low%]",
|
||||
"ok": "[%key:component::tractive::entity::sensor::activity::state::ok%]"
|
||||
}
|
||||
},
|
||||
"tracker_battery_level": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user