mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 21:36:36 +00:00
Problem device class (#726)
* Problem device class * Move OK/Problem master to binary_sensor
This commit is contained in:
parent
f385c7e7d5
commit
f8261d93d3
@ -107,6 +107,10 @@
|
||||
"off": "[%key:state::device_tracker::not_home%]",
|
||||
"on": "[%key:state::device_tracker::home%]"
|
||||
},
|
||||
"problem": {
|
||||
"off": "OK",
|
||||
"on": "Problem"
|
||||
},
|
||||
"safety": {
|
||||
"off": "Safe",
|
||||
"on": "Unsafe"
|
||||
@ -180,8 +184,8 @@
|
||||
"stopped": "[%key:state::cover::stopped%]",
|
||||
"locked": "[%key:state::lock::locked%]",
|
||||
"unlocked": "[%key:state::lock::unlocked%]",
|
||||
"ok": "[%key:state::plant::ok%]",
|
||||
"problem": "[%key:state::plant::problem%]"
|
||||
"ok": "[%key:state::binary_sensor::problem::off%]",
|
||||
"problem": "[%key:state::binary_sensor::problem::on%]"
|
||||
},
|
||||
"input_boolean": {
|
||||
"off": "[%key:state::default::off%]",
|
||||
@ -204,8 +208,8 @@
|
||||
"standby": "Standby"
|
||||
},
|
||||
"plant": {
|
||||
"ok": "OK",
|
||||
"problem": "Problem"
|
||||
"ok": "[%key:state::binary_sensor::problem::off%]",
|
||||
"problem": "[%key:state::binary_sensor::problem::on%]"
|
||||
},
|
||||
"remote": {
|
||||
"off": "[%key:state::default::off%]",
|
||||
|
@ -225,6 +225,7 @@ window.hassUtil.binarySensorIcon = function (state) {
|
||||
return activated ? 'mdi:crop-portrait' : 'mdi:vibrate';
|
||||
case 'gas':
|
||||
case 'power':
|
||||
case 'problem':
|
||||
case 'safety':
|
||||
case 'smoke':
|
||||
return activated ? 'mdi:verified' : 'mdi:alert';
|
||||
|
Loading…
x
Reference in New Issue
Block a user