Browse Source

improve name

rules-rpn
abmantis 5 years ago
parent
commit
b412f7fd36
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/homeassistant.ino

+ 1
- 1
code/espurna/homeassistant.ino View File

@ -261,7 +261,7 @@ void _haGetDeviceConfig(JsonObject& config) {
String identifier = getIdentifier(); String identifier = getIdentifier();
config.createNestedArray("identifiers").add(identifier); config.createNestedArray("identifiers").add(identifier);
config["name"] = _haFixName(getSetting("hostname"));
config["name"] = getSetting("desc", getSetting("hostname"));
config["manufacturer"] = String(MANUFACTURER); config["manufacturer"] = String(MANUFACTURER);
config["model"] = String(DEVICE); config["model"] = String(DEVICE);
config["sw_version"] = String(APP_NAME) + " " + String(APP_VERSION) + " (" + getCoreVersion() + ")"; config["sw_version"] = String(APP_NAME) + " " + String(APP_VERSION) + " (" + getCoreVersion() + ")";


Loading…
Cancel
Save