add comments about nesting

This commit is contained in:
proddy
2021-09-21 18:03:43 +02:00
parent 906813b8f5
commit 4d88c6a90b

View File

@@ -174,11 +174,11 @@ class Mqtt {
} }
static uint8_t nested_format() { static uint8_t nested_format() {
return nested_format_; return nested_format_; // nested_format is 1 if nested, otherwise 2 for single topics
} }
static void nested_format(uint8_t nested_format) { static void nested_format(uint8_t nested_format) {
nested_format_ = nested_format; nested_format_ = nested_format; // nested_format is 1 if nested, otherwise 2 for single topics
} }
static bool ha_enabled() { static bool ha_enabled() {