Browse Source
Merge pull request #520 from mcspr/hass-web-ws
Home Assistant switch in WebUI + typo fix
softuart
Xose Pérez
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
code/espurna/homeassistant.ino
|
|
@ -18,6 +18,7 @@ bool _haSendFlag = false; |
|
|
|
void _haWebSocketOnSend(JsonObject& root) { |
|
|
|
root["haVisible"] = 1; |
|
|
|
root["haPrefix"] = getSetting("haPrefix", HOMEASSISTANT_PREFIX); |
|
|
|
root["haEnabled"] = getSetting("haEnabled", HOMEASSISTANT_ENABLED).toInt() == 1; |
|
|
|
} |
|
|
|
|
|
|
|
#if SENSOR_SUPPORT
|