Browse Source

Merge pull request #850 from PhilRW/homeassistant

Remove quotes from HomeAssistant units
rfm69
Xose Pérez 6 years ago
committed by GitHub
parent
commit
9980315c8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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("platform", "mqtt");
config.set("device_class", "sensor"); config.set("device_class", "sensor");
config["state_topic"] = mqttTopic(magnitudeTopicIndex(i).c_str(), false); 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