mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-29 10:09:11 +03:00
tidy up add_ha_dev_section
This commit is contained in:
@@ -259,7 +259,12 @@ class Mqtt {
|
||||
|
||||
static void
|
||||
add_ha_classes(JsonObject doc, const uint8_t device_type, const uint8_t type, const uint8_t uom, const char * entity = nullptr, bool is_discovery = true);
|
||||
static void add_ha_dev_section(JsonObject doc, const char * name, const char * model, const char * brand, const char * version, const bool create_model);
|
||||
static void add_ha_dev_section(JsonObject doc,
|
||||
const char * name = nullptr,
|
||||
const bool create_model = false,
|
||||
const char * model = nullptr,
|
||||
const char * brand = nullptr,
|
||||
const char * version = nullptr);
|
||||
static void add_ha_avty_section(JsonObject doc,
|
||||
const char * state_t = nullptr,
|
||||
const char * cond1 = nullptr,
|
||||
|
||||
Reference in New Issue
Block a user