bugfix, fixed retrieval of sensors
This commit is contained in:
parent
68265759ba
commit
439be77a8b
1 changed files with 3 additions and 2 deletions
|
|
@ -113,8 +113,9 @@ public class PCOverviewHttpPage extends HalHttpPage implements HalHttpPage.HalJs
|
|||
private List<Sensor> getSensorList(DBConnection db) throws SQLException {
|
||||
List<Sensor> sensors = new ArrayList<>();
|
||||
for (Sensor sensor : Sensor.getSensors(db)) {
|
||||
if (sensor.getDeviceConfig() != null &&
|
||||
sensor.getDeviceConfig() instanceof PowerConsumptionSensorData)
|
||||
if (sensor.getDeviceConfig() != null) // Show all sensors for now
|
||||
// if (sensor.getDeviceConfig() != null &&
|
||||
// sensor.getDeviceConfig().getSensorDataClass() == PowerConsumptionSensorData.class)
|
||||
sensors.add(sensor);
|
||||
}
|
||||
return sensors;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue