Skip to content

Commit 548b5ff

Browse files
committed
remove unused check
1 parent 80fedf3 commit 548b5ff

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/emsdevice.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,10 @@ bool EMSdevice::get_value_info(JsonObject & root, const char * cmd, const int8_t
737737

738738
json["name"] = dv.short_name;
739739
// prefix tag if it's included
740-
if (dv_is_visible(dv)) {
741-
if ((dv.tag == DeviceValueTAG::TAG_NONE) || tag_to_string(dv.tag).empty()) {
742-
json["fullname"] = dv.full_name;
743-
} else {
744-
json["fullname"] = tag_to_string(dv.tag) + " " + uuid::read_flash_string(dv.full_name);
745-
}
740+
if ((dv.tag == DeviceValueTAG::TAG_NONE) || tag_to_string(dv.tag).empty()) {
741+
json["fullname"] = dv.full_name;
742+
} else {
743+
json["fullname"] = tag_to_string(dv.tag) + " " + uuid::read_flash_string(dv.full_name);
746744
}
747745

748746
if (!tag_to_mqtt(dv.tag).empty()) {

0 commit comments

Comments
 (0)