mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
ha config to basename, analog/dallas allow single/nested with ha
This commit is contained in:
@@ -142,6 +142,10 @@ class Mqtt {
|
||||
return mqtt_base_;
|
||||
}
|
||||
|
||||
static std::string basename() {
|
||||
return mqtt_basename_;
|
||||
}
|
||||
|
||||
// returns the discovery MQTT topic prefix and adds a /
|
||||
static std::string discovery_prefix() {
|
||||
if (discovery_prefix_.empty()) {
|
||||
@@ -286,9 +290,8 @@ class Mqtt {
|
||||
static bool ha_climate_reset_;
|
||||
|
||||
// settings, copied over
|
||||
static std::string system_hostname_;
|
||||
|
||||
static std::string mqtt_base_;
|
||||
static std::string mqtt_basename_;
|
||||
static uint8_t mqtt_qos_;
|
||||
static bool mqtt_retain_;
|
||||
static uint32_t publish_time_;
|
||||
|
||||
Reference in New Issue
Block a user