Add missing device class strings (binary sensor) (#42326)

`battery_charging`, `light`, `moving`, `plug` were missing.
Developer documentation was used for states text:
https://developers.home-assistant.io/docs/core/entity/binary-sensor
This commit is contained in:
Oncleben31 2020-11-09 22:09:44 +01:00 committed by GitHub
parent add50cb33a
commit 3187c7cc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,10 @@
"off": "Normal", "off": "Normal",
"on": "Low" "on": "Low"
}, },
"battery_charging": {
"off": "Not charging",
"on": "Charging"
},
"cold": { "cold": {
"off": "[%key:component::binary_sensor::state::battery::off%]", "off": "[%key:component::binary_sensor::state::battery::off%]",
"on": "Cold" "on": "Cold"
@ -119,6 +123,10 @@
"off": "[%key:component::binary_sensor::state::battery::off%]", "off": "[%key:component::binary_sensor::state::battery::off%]",
"on": "Hot" "on": "Hot"
}, },
"light": {
"off": "No light",
"on": "Light detected"
},
"lock": { "lock": {
"off": "[%key:common::state::locked%]", "off": "[%key:common::state::locked%]",
"on": "[%key:common::state::unlocked%]" "on": "[%key:common::state::unlocked%]"
@ -131,6 +139,10 @@
"off": "[%key:component::binary_sensor::state::gas::off%]", "off": "[%key:component::binary_sensor::state::gas::off%]",
"on": "[%key:component::binary_sensor::state::gas::on%]" "on": "[%key:component::binary_sensor::state::gas::on%]"
}, },
"moving": {
"off": "Not moving",
"on": "Moving"
},
"occupancy": { "occupancy": {
"off": "[%key:component::binary_sensor::state::gas::off%]", "off": "[%key:component::binary_sensor::state::gas::off%]",
"on": "[%key:component::binary_sensor::state::gas::on%]" "on": "[%key:component::binary_sensor::state::gas::on%]"
@ -139,6 +151,10 @@
"off": "[%key:common::state::closed%]", "off": "[%key:common::state::closed%]",
"on": "[%key:common::state::open%]" "on": "[%key:common::state::open%]"
}, },
"plug": {
"off": "Unplugged",
"on": "Plugged in"
},
"presence": { "presence": {
"off": "[%key:component::device_tracker::state::_::not_home%]", "off": "[%key:component::device_tracker::state::_::not_home%]",
"on": "[%key:component::device_tracker::state::_::home%]" "on": "[%key:component::device_tracker::state::_::home%]"