Browse Source

"sensor" is not supported device_class

rfm69
Maxim Prokhorov 6 years ago
parent
commit
4735174480
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      code/espurna/homeassistant.ino

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

@ -24,7 +24,6 @@ void _haSendMagnitude(unsigned char i, JsonObject& config) {
unsigned char type = magnitudeType(i);
config["name"] = getSetting("hostname") + String(" ") + magnitudeTopic(type);
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("\"");


Loading…
Cancel
Save