mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +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,
|
value_fn=lambda state: state.lower() if isinstance(state, str) else state,
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options=[
|
options=[
|
||||||
"ok",
|
|
||||||
"good",
|
"good",
|
||||||
|
"low",
|
||||||
|
"ok",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
TractiveSensorEntityDescription(
|
TractiveSensorEntityDescription(
|
||||||
@ -188,8 +189,9 @@ SENSOR_TYPES: tuple[TractiveSensorEntityDescription, ...] = (
|
|||||||
value_fn=lambda state: state.lower() if isinstance(state, str) else state,
|
value_fn=lambda state: state.lower() if isinstance(state, str) else state,
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options=[
|
options=[
|
||||||
"ok",
|
|
||||||
"good",
|
"good",
|
||||||
|
"low",
|
||||||
|
"ok",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -33,8 +33,9 @@
|
|||||||
"activity": {
|
"activity": {
|
||||||
"name": "Activity",
|
"name": "Activity",
|
||||||
"state": {
|
"state": {
|
||||||
"ok": "OK",
|
"good": "Good",
|
||||||
"good": "Good"
|
"low": "Low",
|
||||||
|
"ok": "OK"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"activity_time": {
|
"activity_time": {
|
||||||
@ -58,8 +59,9 @@
|
|||||||
"sleep": {
|
"sleep": {
|
||||||
"name": "Sleep",
|
"name": "Sleep",
|
||||||
"state": {
|
"state": {
|
||||||
"ok": "OK",
|
"good": "[%key:component::tractive::entity::sensor::activity::state::good%]",
|
||||||
"good": "Good"
|
"low": "[%key:component::tractive::entity::sensor::activity::state::low%]",
|
||||||
|
"ok": "[%key:component::tractive::entity::sensor::activity::state::ok%]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tracker_battery_level": {
|
"tracker_battery_level": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user