From 3187c7cc9d118af7e0c2bd43ddfef8cbe71f1145 Mon Sep 17 00:00:00 2001 From: Oncleben31 Date: Mon, 9 Nov 2020 22:09:44 +0100 Subject: [PATCH] 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 --- .../components/binary_sensor/strings.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/homeassistant/components/binary_sensor/strings.json b/homeassistant/components/binary_sensor/strings.json index 045fcdae707..7380d1be576 100644 --- a/homeassistant/components/binary_sensor/strings.json +++ b/homeassistant/components/binary_sensor/strings.json @@ -95,6 +95,10 @@ "off": "Normal", "on": "Low" }, + "battery_charging": { + "off": "Not charging", + "on": "Charging" + }, "cold": { "off": "[%key:component::binary_sensor::state::battery::off%]", "on": "Cold" @@ -119,6 +123,10 @@ "off": "[%key:component::binary_sensor::state::battery::off%]", "on": "Hot" }, + "light": { + "off": "No light", + "on": "Light detected" + }, "lock": { "off": "[%key:common::state::locked%]", "on": "[%key:common::state::unlocked%]" @@ -131,6 +139,10 @@ "off": "[%key:component::binary_sensor::state::gas::off%]", "on": "[%key:component::binary_sensor::state::gas::on%]" }, + "moving": { + "off": "Not moving", + "on": "Moving" + }, "occupancy": { "off": "[%key:component::binary_sensor::state::gas::off%]", "on": "[%key:component::binary_sensor::state::gas::on%]" @@ -139,6 +151,10 @@ "off": "[%key:common::state::closed%]", "on": "[%key:common::state::open%]" }, + "plug": { + "off": "Unplugged", + "on": "Plugged in" + }, "presence": { "off": "[%key:component::device_tracker::state::_::not_home%]", "on": "[%key:component::device_tracker::state::_::home%]"