mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +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,9 +350,9 @@ void onMqttConnect(esp_mqtt_client_handle_t client)
|
|||||||
// mqttSubscribeTo(mqttNodeTopic + subtopic);
|
// mqttSubscribeTo(mqttNodeTopic + subtopic);
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
#if defined(HASP_USE_CUSTOM)
|
||||||
subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
String subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
||||||
mqttSubscribeTo(mqttGroupTopic + subtopic);
|
mqttSubscribeTo(mqttGroupCommandTopic + subtopic);
|
||||||
mqttSubscribeTo(mqttNodeTopic + subtopic);
|
mqttSubscribeTo(mqttNodeCommandTopic + subtopic);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Home Assistant auto-configuration */
|
/* Home Assistant auto-configuration */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user