Add a check to MQTT_HOME_ASSISTANT_SUPPORT
there is some confusion on gitter on just enabling MQTT_HOME_ASSISTANT_SUPPORT will enable ENABLE_HOMEASSISTANT. This is a compiler check to make sure if MQTT_HOME_ASSISTANT_SUPPORT is enabled ENABLE_HOMEASSISTANT must also be enabled
This commit is contained in:
parent
6db19b7555
commit
de5f11bab8
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ const char HOSTNAME[] = "McLighting01"; // Friedly hostname
|
|||
#if ( (defined(ENABLE_HOMEASSISTANT) and !defined(ENABLE_MQTT)) and (defined(ENABLE_HOMEASSISTANT) and !defined(ENABLE_AMQTT)) )
|
||||
#error "To use HA, you have to either enable PubCubClient or AsyncMQTT"
|
||||
#endif
|
||||
#if ( !defined(ENABLE_HOMEASSISTANT) and defined(MQTT_HOME_ASSISTANT_SUPPORT) )
|
||||
#error "To use HA support, you have to either enable Homeassistant component"
|
||||
#endif
|
||||
|
||||
// parameters for automatically cycling favorite patterns
|
||||
uint32_t autoParams[][4] = { // color, speed, mode, duration (seconds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue