Browse Source

Remove quotes from HomeAssistant units

Closes #849
rfm69
Philip Rosenberg-Watt 6 years ago
parent
commit
dfa7327491
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/homeassistant.ino

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

@ -26,7 +26,7 @@ void _haSendMagnitude(unsigned char i, JsonObject& config) {
config.set("platform", "mqtt");
config.set("device_class", "sensor");
config["state_topic"] = mqttTopic(magnitudeTopicIndex(i).c_str(), false);
config["unit_of_measurement"] = String("\"") + magnitudeUnits(type) + String("\"");
config["unit_of_measurement"] = magnitudeUnits(type);
}


Loading…
Cancel
Save