Skip to content

Commit

Permalink
Problem device class (home-assistant#726)
Browse files Browse the repository at this point in the history
* Problem device class

* Move OK/Problem master to binary_sensor
  • Loading branch information
emlove authored and balloob committed Dec 14, 2017
1 parent f385c7e commit f8261d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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%]",
Expand All @@ -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%]",
Expand Down
1 change: 1 addition & 0 deletions src/util/hass-util.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
return activated ? 'mdi:crop-portrait' : 'mdi:vibrate';
case 'gas':
case 'power':
case 'problem':
case 'safety':
case 'smoke':
return activated ? 'mdi:verified' : 'mdi:alert';
Expand Down

0 comments on commit f8261d9

Please sign in to comment.