Browse Source

Force MQTT support when HOMEASSISTANT_SUPPORT is 1

i18n
Xose Pérez 6 years ago
parent
commit
dc1dadf439
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      code/espurna/config/general.h

+ 5
- 0
code/espurna/config/general.h View File

@ -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) #define HOMEASSISTANT_SUPPORT MQTT_SUPPORT // Build with home assistant support (if MQTT, 1.64Kb)
#endif #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_ENABLED 0 // Integration not enabled by default
#define HOMEASSISTANT_PREFIX "homeassistant" // Default MQTT prefix #define HOMEASSISTANT_PREFIX "homeassistant" // Default MQTT prefix


Loading…
Cancel
Save