Browse Source

homeassistant: missing setting in WS callback

softuart
Maxim Prokhorov 6 years ago
parent
commit
8d87bb8db9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/homeassistant.ino

+ 1
- 0
code/espurna/homeassistant.ino View File

@ -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


Loading…
Cancel
Save