Browse Source

changed the way sensor ids are generated

Malte Veerman 5 years ago
parent
commit
d7304f0eff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      import/src/sensor.cpp

+ 1 - 1
import/src/sensor.cpp

@@ -34,7 +34,7 @@ Sensor::Sensor(Hwmon *parent, uint index, const QString &type, bool device) : QO
     if (!parent)
         return;
 
-    m_id = device ? parent->name() + "/device/" + type + QString::number(index) : parent->name() + "/" + type + QString::number(index);
+    m_id = QStringLiteral("hwmon") + parent->index() + "/" + type + QString::number(index);
 
     connect(this, &Sensor::error, parent, &Hwmon::error);
 }