En-tag for HA-entity

This commit is contained in:
MichaelDvP
2022-11-14 12:22:12 +01:00
parent b12729a874
commit 5bda018d25
3 changed files with 4 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ bool EMSdevice::has_entities() const {
return false;
}
std::string EMSdevice::tag_to_string(uint8_t tag) {
return (Helpers::translated_word(DeviceValue::DeviceValueTAG_s[tag]));
std::string EMSdevice::tag_to_string(uint8_t tag, const bool translate) {
return (translate ? Helpers::translated_word(DeviceValue::DeviceValueTAG_s[tag]) : DeviceValue::DeviceValueTAG_s[tag][0]);
}
std::string EMSdevice::tag_to_mqtt(uint8_t tag) {