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`
This commit is contained in:
David 2017-12-18 15:40:28 +01:00 committed by Adam Mills
parent 1aa1ac709d
commit af8f77779b

View File

@ -83,6 +83,10 @@
"off": "Normal", "off": "Normal",
"on": "Low" "on": "Low"
}, },
"connectivity": {
"off": "Disconnected",
"on": "Connected"
},
"gas": { "gas": {
"off": "Clear", "off": "Clear",
"on": "Detected" "on": "Detected"