mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Merge pull request #447 from Eshmun/master
Fix custom topic when HASP_USE_CUSTOM is defined
This commit is contained in:
commit
c7b8b847ad
@ -350,10 +350,10 @@ void onMqttConnect(esp_mqtt_client_handle_t client)
|
||||
// mqttSubscribeTo(mqttNodeTopic + subtopic);
|
||||
|
||||
#if defined(HASP_USE_CUSTOM)
|
||||
subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
||||
mqttSubscribeTo(mqttGroupTopic + subtopic);
|
||||
mqttSubscribeTo(mqttNodeTopic + subtopic);
|
||||
#endif
|
||||
String subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
||||
mqttSubscribeTo(mqttGroupCommandTopic + subtopic);
|
||||
mqttSubscribeTo(mqttNodeCommandTopic + subtopic);
|
||||
#endif
|
||||
|
||||
/* Home Assistant auto-configuration */
|
||||
#ifdef HASP_USE_HA
|
||||
|
Loading…
x
Reference in New Issue
Block a user