From af8f77779b3bb7378d43d7b55fff6841697d5982 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 18 Dec 2017 15:40:28 +0100 Subject: [PATCH] Define textual state for connectivity device_class (#740) * Define textual state for connectivity device_class Define textual state for connectivity `device_class` for `binary_sensor`. Without this addition, a `binary_sensor` using the connectivity `device_class` is simply shown as `Off` or `On`. The icon does change but only if the user hasn't defined a custom icon. * Change wording Change `Offline`/`Online` to `Disconnected`/`Connected` --- src/translations/en.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/translations/en.json b/src/translations/en.json index 0599da8fd0..10f2922add 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -83,6 +83,10 @@ "off": "Normal", "on": "Low" }, + "connectivity": { + "off": "Disconnected", + "on": "Connected" + }, "gas": { "off": "Clear", "on": "Detected"