Print no button handler warning only  if sensor has RStateButtonEvent
@@ -4504,9 +4504,12 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
return;
}
+ if (sensor->item(RStateButtonEvent))
+ {
DBG_Printf(DBG_INFO, "[INFO] - No button handler for: %s endpoint: 0x%02X cluster: %s command: %s payload[0]: 0%02X\n",
qPrintable(sensor->modelId()), ind.srcEndpoint(), qPrintable(cluster), qPrintable(cmd), pl0);
}
+}
/*! Adds a new sensor node to node cache.
Only supported ZLL and HA nodes will be added.
