From dc1dadf439a674b21f4236849c58118580ef7a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 5 Jan 2018 22:27:14 +0100 Subject: [PATCH] Force MQTT support when HOMEASSISTANT_SUPPORT is 1 --- code/espurna/config/general.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 92b8f13f..113c97af 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -588,6 +588,11 @@ PROGMEM const char* const custom_reset_string[] = { #define HOMEASSISTANT_SUPPORT MQTT_SUPPORT // Build with home assistant support (if MQTT, 1.64Kb) #endif +#if HOMEASSISTANT_SUPPORT +#undef MQTT_SUPPORT +#define MQTT_SUPPORT 1 // If Home Assistant enabled enable MQTT +#endif + #define HOMEASSISTANT_ENABLED 0 // Integration not enabled by default #define HOMEASSISTANT_PREFIX "homeassistant" // Default MQTT prefix