mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
use same ha_uom function to add uom, state and device class
This commit is contained in:
@@ -232,7 +232,7 @@ class Mqtt {
|
||||
|
||||
static std::string tag_to_topic(uint8_t device_type, int8_t tag);
|
||||
|
||||
static void add_ha_uom(JsonObject doc, const uint8_t type, const uint8_t uom, const char * entity = nullptr);
|
||||
static void add_ha_uom(JsonObject doc, const uint8_t type, const uint8_t uom, const char * entity = nullptr, bool is_discovery = true);
|
||||
|
||||
static void add_ha_sections_to_doc(const char * name,
|
||||
const char * state_t,
|
||||
|
||||
Reference in New Issue
Block a user