From 97e99fe159c293a682207985de0ca385445f138b Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 4 Feb 2018 06:35:20 +0300 Subject: [PATCH 1/2] homeassistant: fix typo in module filename --- code/espurna/{homeassitant.ino => homeassistant.ino} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename code/espurna/{homeassitant.ino => homeassistant.ino} (100%) diff --git a/code/espurna/homeassitant.ino b/code/espurna/homeassistant.ino similarity index 100% rename from code/espurna/homeassitant.ino rename to code/espurna/homeassistant.ino From 8d87bb8db954b4db4e03ee38eded1299ea131b29 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 4 Feb 2018 06:42:07 +0300 Subject: [PATCH 2/2] homeassistant: missing setting in WS callback --- code/espurna/homeassistant.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/code/espurna/homeassistant.ino b/code/espurna/homeassistant.ino index e2117f29..a869a2ad 100644 --- a/code/espurna/homeassistant.ino +++ b/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