de_web_plugin.cpp: fix build
@@ -5212,7 +5212,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
if (!sensorNode.modelId().startsWith(QLatin1String("lumi.ctrl_")) &&
!sensorNode.modelId().startsWith(QLatin1String("lumi.plug")) &&
sensorNode.modelId() != QLatin1String("lumi.curtain") &&
- !sensor.type().endsWith(QLatin1String("Battery")))
+ !sensorNode.type().endsWith(QLatin1String("Battery")))
{
sensorNode.addItem(DataTypeUInt8, RConfigBattery);
}
